public interface SecurityContextProvider
| Modifier and Type | Method and Description |
|---|---|
java.security.Principal |
getUserPrincipal()
Returns the Principal for the context.
|
boolean |
isTransportSecure()
Returns true if the transport context is secure (SSL).
|
boolean |
isUserInRole(java.lang.String permission)
Returns true if the user principal plays the named role.
|
java.lang.String |
runAs(java.lang.String roleName)
Sets the current runAs role/principal.
|
java.security.Principal getUserPrincipal()
throws SecurityContextException
SecurityContextExceptionboolean isUserInRole(java.lang.String permission)
permission - the permission to test against.java.lang.String runAs(java.lang.String roleName)
isUserInRole and getUserPrincipal.roleName - the new roleboolean isTransportSecure()
throws SecurityContextException
SecurityContextException