public class SAMLSecurityContext extends Object implements ClaimsSecurityContext
Constructor and Description |
---|
SAMLSecurityContext(Principal principal) |
SAMLSecurityContext(Principal principal,
Set<Principal> roles) |
SAMLSecurityContext(Principal principal,
Set<Principal> roles,
ClaimCollection claims) |
Modifier and Type | Method and Description |
---|---|
Element |
getAssertionElement() |
ClaimCollection |
getClaims() |
String |
getIssuer() |
Subject |
getSubject()
Returns the Subject representing the current authenticated user.
|
Principal |
getUserPrincipal() |
Set<Principal> |
getUserRoles()
Returns a set of Principals representing the roles
assigned to the current authenticated user Principal
|
boolean |
isUserInRole(String role) |
void |
setAssertionElement(Element assertionElement) |
void |
setIssuer(String issuer) |
void |
setUserRoles(Set<Principal> userRoles) |
public SAMLSecurityContext(Principal principal)
public SAMLSecurityContext(Principal principal, Set<Principal> roles, ClaimCollection claims)
public ClaimCollection getClaims()
getClaims
in interface ClaimsSecurityContext
public Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public boolean isUserInRole(String role)
isUserInRole
in interface SecurityContext
public Subject getSubject()
LoginSecurityContext
getSubject
in interface LoginSecurityContext
public Set<Principal> getUserRoles()
LoginSecurityContext
getUserRoles
in interface LoginSecurityContext
public void setAssertionElement(Element assertionElement)
public Element getAssertionElement()
public void setIssuer(String issuer)
public String getIssuer()
Apache CXF