Class DefaultSecurityContext
java.lang.Object
org.apache.cxf.interceptor.security.DefaultSecurityContext
- All Implemented Interfaces:
- LoginSecurityContext,- SecurityContext
SecurityContext which implements isUserInRole using the
 following approach : skip the first Subject principal, and then checks
 Groups the principal is a member of
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultSecurityContext(String principalName, Subject subject) DefaultSecurityContext(Principal p, Subject subject) DefaultSecurityContext(Subject subject) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancheckGroup(Principal principal, String role) Returns the Subject representing the current authenticated user.Returns a set of Principals representing the roles assigned to the current authenticated user Principalstatic booleanisGroupPrincipal(Principal principal) booleanisUserInRole(String role) 
- 
Constructor Details- 
DefaultSecurityContext
- 
DefaultSecurityContext
- 
DefaultSecurityContext
 
- 
- 
Method Details- 
getUserPrincipal- Specified by:
- getUserPrincipalin interface- SecurityContext
 
- 
isUserInRole- Specified by:
- isUserInRolein interface- SecurityContext
 
- 
checkGroup
- 
getSubjectDescription copied from interface:LoginSecurityContextReturns the Subject representing the current authenticated user.- Specified by:
- getSubjectin interface- LoginSecurityContext
- Returns:
- the subject
 
- 
getUserRolesDescription copied from interface:LoginSecurityContextReturns a set of Principals representing the roles assigned to the current authenticated user Principal- Specified by:
- getUserRolesin interface- LoginSecurityContext
- Returns:
- the roles
 
- 
isGroupPrincipal
 
-