|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.coherence.rest.server.AbstractHttpServer.SimpleSecurityContext
protected static class AbstractHttpServer.SimpleSecurityContext
Simple implementation of the SecurityContext interface.
| Field Summary |
|---|
| Fields inherited from interface javax.ws.rs.core.SecurityContext |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
protected |
AbstractHttpServer.SimpleSecurityContext(java.lang.String sAuthScheme, java.security.Principal principal, boolean fSecure)Create a new SimpleSecurityContext instance. |
| Method Summary | |
|---|---|
java.lang.String |
getAuthenticationScheme()Return the string value of the authentication scheme used to protect the resource. |
java.security.Principal |
getUserPrincipal()Return a Principal object containing the name of the current authenticated user. |
boolean |
isSecure()Return a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
boolean |
isUserInRole(java.lang.String sRole)Return a boolean indicating whether the authenticated user is included in the specified logical "role". |
| Constructor Detail |
|---|
protected AbstractHttpServer.SimpleSecurityContext(java.lang.String sAuthScheme,
java.security.Principal principal,
boolean fSecure)
sAuthScheme - string value of the authentication scheme used to protect resourcesprincipal - the Principal containing the name of the current authenticated userfSecure - a boolean value indicating whether a request was made using a secure channel, such as HTTPS| Method Detail |
|---|
public java.lang.String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextpublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(java.lang.String sRole)
isUserInRole in interface javax.ws.rs.core.SecurityContextsRole - the name of the role
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||