Class RolePrefixSecurityContextImpl
java.lang.Object
org.apache.cxf.interceptor.security.RolePrefixSecurityContextImpl
- All Implemented Interfaces:
LoginSecurityContext,SecurityContext
-
Constructor Summary
ConstructorsConstructorDescriptionRolePrefixSecurityContextImpl(Subject subject, String rolePrefix) RolePrefixSecurityContextImpl(Subject subject, String roleClassifier, String roleClassifierType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Subject representing the current authenticated user.Returns a set of Principals representing the roles assigned to the current authenticated user PrincipalbooleanisUserInRole(String role)
-
Constructor Details
-
RolePrefixSecurityContextImpl
-
RolePrefixSecurityContextImpl
-
-
Method Details
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceSecurityContext
-
isUserInRole
- Specified by:
isUserInRolein interfaceSecurityContext
-
getSubject
Description copied from interface:LoginSecurityContextReturns the Subject representing the current authenticated user.- Specified by:
getSubjectin interfaceLoginSecurityContext- Returns:
- the subject
-
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
-