Class SAMLSecurityContext
- java.lang.Object
-
- org.apache.cxf.rt.security.saml.claims.SAMLSecurityContext
-
- All Implemented Interfaces:
ClaimsSecurityContext,LoginSecurityContext,SecurityContext
public class SAMLSecurityContext extends Object implements ClaimsSecurityContext
-
-
Constructor Summary
Constructors Constructor Description SAMLSecurityContext(Principal principal)SAMLSecurityContext(Principal principal, Set<Principal> roles)SAMLSecurityContext(Principal principal, Set<Principal> roles, ClaimCollection claims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetAssertionElement()ClaimCollectiongetClaims()StringgetIssuer()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)voidsetAssertionElement(Element assertionElement)voidsetIssuer(String issuer)voidsetUserRoles(Set<Principal> userRoles)
-
-
-
Method Detail
-
getClaims
public ClaimCollection getClaims()
- Specified by:
getClaimsin interfaceClaimsSecurityContext
-
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
-
setAssertionElement
public void setAssertionElement(Element assertionElement)
-
getAssertionElement
public Element getAssertionElement()
-
setIssuer
public void setIssuer(String issuer)
-
getIssuer
public String getIssuer()
-
-