public class RolePrefixSecurityContextImpl extends Object implements LoginSecurityContext
Constructor and Description |
---|
RolePrefixSecurityContextImpl(Subject subject,
String rolePrefix) |
RolePrefixSecurityContextImpl(Subject subject,
String roleClassifier,
String roleClassifierType) |
Modifier and Type | Method and Description |
---|---|
Subject |
getSubject()
Returns the Subject representing the current authenticated user.
|
Principal |
getUserPrincipal() |
Set<Principal> |
getUserRoles()
Returns a set of Principals representing the roles
assigned to the current authenticated user Principal
|
boolean |
isUserInRole(String role) |
public RolePrefixSecurityContextImpl(Subject subject, String rolePrefix)
public Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public boolean isUserInRole(String role)
isUserInRole
in interface SecurityContext
public Subject getSubject()
LoginSecurityContext
getSubject
in interface LoginSecurityContext
public Set<Principal> getUserRoles()
LoginSecurityContext
getUserRoles
in interface LoginSecurityContext
Apache CXF