isSecure() Method Example

isSecure() method is defined in ServletRequest interface from javax.servlet package and inherited by HttpServletRequest. With isSecure() method, the servlet programmer can know whether the client is using a secured protocol (HTTPS) or not while calling the servlet. If secured protocol is used, this method returns true else false. Let us see what Java API says …

isSecure() Method Example Read More »