|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityContextProvider
Defines the interface any security provider must implement.
Method Summary | |
---|---|
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. |
Method Detail |
---|
java.security.Principal getUserPrincipal() throws SecurityContextException
SecurityContextException
boolean 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 role
boolean isTransportSecure() throws SecurityContextException
SecurityContextException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |