Class RolePrefixSecurityContextImpl
java.lang.Object
org.apache.cxf.interceptor.security.RolePrefixSecurityContextImpl
- All Implemented Interfaces:
LoginSecurityContext
,SecurityContext
-
Constructor Summary
ConstructorDescriptionRolePrefixSecurityContextImpl
(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 Principalboolean
isUserInRole
(String role)
-
Constructor Details
-
RolePrefixSecurityContextImpl
-
RolePrefixSecurityContextImpl
-
-
Method Details
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceSecurityContext
-
isUserInRole
- Specified by:
isUserInRole
in interfaceSecurityContext
-
getSubject
Description copied from interface:LoginSecurityContext
Returns the Subject representing the current authenticated user.- Specified by:
getSubject
in interfaceLoginSecurityContext
- Returns:
- the subject
-
getUserRoles
Description copied from interface:LoginSecurityContext
Returns a set of Principals representing the roles assigned to the current authenticated user Principal- Specified by:
getUserRoles
in interfaceLoginSecurityContext
- Returns:
- the roles
-