com.caucho.security
Interface SecurityContextProvider
- All Known Implementing Classes:
- AbstractRequest
- public interface SecurityContextProvider
Defines the interface any security provider must implement.
Method Summary |
java.security.Principal |
getUserPrincipal()
Returns the Principal for the context. |
boolean |
isUserInRole(java.lang.String roleName)
Returns true if the user principal plays the named role. |
getUserPrincipal
public java.security.Principal getUserPrincipal()
throws SecurityContextException
- Returns the Principal for the context.
- Returns:
- the principal in the context or null.
isUserInRole
public boolean isUserInRole(java.lang.String roleName)
throws SecurityContextException
- Returns true if the user principal plays the named role.
- Parameters:
roleName
- the role to test against.