public final class O2SecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Constructor and Description |
|---|
O2SecurityContext(O2Principal principal)
Create a new instance of the security context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme()
Return the method by which this context was authenticated.
|
Principal |
getUserPrincipal()
Return the active user principal.
|
boolean |
isSecure()
Is this request secure (i.e.
|
boolean |
isUserInRole(String role)
This doesn't do anything for this implementation.
|
public O2SecurityContext(O2Principal principal)
principal - The principal that should be wrapped.public Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface javax.ws.rs.core.SecurityContextrole - A 'role'.public boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextCopyright © 2018 krotscheck.net. All rights reserved.