|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
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 HTTPSMethod Detail |
---|
public java.lang.String getAuthenticationScheme()
getAuthenticationScheme
in interface javax.ws.rs.core.SecurityContext
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.ws.rs.core.SecurityContext
public boolean isSecure()
isSecure
in interface javax.ws.rs.core.SecurityContext
public boolean isUserInRole(java.lang.String sRole)
isUserInRole
in interface javax.ws.rs.core.SecurityContext
sRole
- the name of the role
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |