Apache CXF API

org.apache.cxf.rs.security.saml.authorization
Class SAMLSecurityContext

java.lang.Object
  extended by org.apache.cxf.rs.security.saml.authorization.SAMLSecurityContext
All Implemented Interfaces:
SecurityContext

public class SAMLSecurityContext
extends Object
implements SecurityContext


Constructor Summary
SAMLSecurityContext(Subject subject, List<Claim> claims)
           
SAMLSecurityContext(SubjectPrincipal p, Claims claims)
           
SAMLSecurityContext(SubjectPrincipal p, Claims cs, String roleClaimNameQualifier, String roleClaimNameFormat)
           
 
Method Summary
 Claims getClaims()
           
 Principal getUserPrincipal()
           
 boolean isUserInRole(String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLSecurityContext

public SAMLSecurityContext(Subject subject,
                           List<Claim> claims)

SAMLSecurityContext

public SAMLSecurityContext(SubjectPrincipal p,
                           Claims claims)

SAMLSecurityContext

public SAMLSecurityContext(SubjectPrincipal p,
                           Claims cs,
                           String roleClaimNameQualifier,
                           String roleClaimNameFormat)
Method Detail

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface SecurityContext

isUserInRole

public boolean isUserInRole(String role)
Specified by:
isUserInRole in interface SecurityContext

getClaims

public Claims getClaims()

Apache CXF API

Apache CXF