Class RolePrefixSecurityContextImpl
- java.lang.Object
-
- org.apache.cxf.interceptor.security.RolePrefixSecurityContextImpl
-
- All Implemented Interfaces:
LoginSecurityContext,SecurityContext
public class RolePrefixSecurityContextImpl extends Object implements LoginSecurityContext
-
-
Constructor Summary
Constructors Constructor Description RolePrefixSecurityContextImpl(Subject subject, String rolePrefix)RolePrefixSecurityContextImpl(Subject subject, String roleClassifier, String roleClassifierType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectgetSubject()Returns the Subject representing the current authenticated user.PrincipalgetUserPrincipal()Set<Principal>getUserRoles()Returns a set of Principals representing the roles assigned to the current authenticated user PrincipalbooleanisUserInRole(String role)
-
-
-
Method Detail
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceSecurityContext
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRolein interfaceSecurityContext
-
getSubject
public Subject getSubject()
Description copied from interface:LoginSecurityContextReturns the Subject representing the current authenticated user.- Specified by:
getSubjectin interfaceLoginSecurityContext- Returns:
- the subject
-
getUserRoles
public Set<Principal> getUserRoles()
Description copied from interface:LoginSecurityContextReturns a set of Principals representing the roles assigned to the current authenticated user Principal- Specified by:
getUserRolesin interfaceLoginSecurityContext- Returns:
- the roles
-
-