Context
| Modifier and Type | Field and Description |
|---|---|
| public static final String | BASIC_AUTH
String identifier for Basic authentication. |
| public static final String | CLIENT_CERT_AUTH
String identifier for Client Certificate authentication. |
| public static final String | DIGEST_AUTH
String identifier for Digest authentication. |
| public static final String | FORM_AUTH
String identifier for Form authentication. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: one of the static members BASIC_AUTH, FORM_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH (suitable for == comparison) or the container-specific string indicating the authentication scheme, or null if the request was not authenticated.Returns the string value of the authentication scheme used to protect the resource. |
| public Principal | Returns: ajava.security.Principal containing the name
of the user making this request; null if the user has not been
authenticatedReturns a |
| public boolean | Returns: true if the request was made using a secure
channel, false otherwiseReturns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
| public boolean | Returns: aboolean indicating whether the user making
the request belongs to a given role; false if the user
has not been authenticateda role)String specifying the name of the roleReturns a boolean indicating whether the authenticated user is included in the specified logical "role". |
| BASIC_AUTH | back to summary |
|---|---|
| public static final String BASIC_AUTH String identifier for Basic authentication. Value "BASIC" | |
| CLIENT_CERT_AUTH | back to summary |
|---|---|
| public static final String CLIENT_CERT_AUTH String identifier for Client Certificate authentication. Value "CLIENT_CERT" | |
| DIGEST_AUTH | back to summary |
|---|---|
| public static final String DIGEST_AUTH String identifier for Digest authentication. Value "DIGEST" | |
| FORM_AUTH | back to summary |
|---|---|
| public static final String FORM_AUTH String identifier for Form authentication. Value "FORM" | |
| getAuthenticationScheme | back to summary |
|---|---|
| public String getAuthenticationScheme() Returns the string value of the authentication scheme used to protect the resource. If the resource is not authenticated, null is returned. Values are the same as the CGI variable AUTH_TYPE
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Returns a
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Returns a boolean indicating whether the authenticated user is included
in the specified logical "role". If the user has not been authenticated,
the method returns
| |