Class SAMLSecurityContext
java.lang.Object
org.apache.cxf.rt.security.saml.claims.SAMLSecurityContext
- All Implemented Interfaces:
ClaimsSecurityContext,LoginSecurityContext,SecurityContext
-
Constructor Summary
ConstructorsConstructorDescriptionSAMLSecurityContext(Principal principal) SAMLSecurityContext(Principal principal, Set<Principal> roles) SAMLSecurityContext(Principal principal, Set<Principal> roles, ClaimCollection claims) -
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) voidsetAssertionElement(Element assertionElement) voidvoidsetUserRoles(Set<Principal> userRoles)
-
Constructor Details
-
SAMLSecurityContext
-
SAMLSecurityContext
-
SAMLSecurityContext
-
-
Method Details
-
getClaims
- Specified by:
getClaimsin interfaceClaimsSecurityContext
-
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
-
setUserRoles
-
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
-
setAssertionElement
-
getAssertionElement
-
setIssuer
-
getIssuer
-