public class SecurityAssertionImpl extends Object implements SecurityAssertion
Constructor and Description |
---|
SecurityAssertionImpl()
Uninitialized Constructor
|
SecurityAssertionImpl(org.apache.cxf.ws.security.tokenstore.SecurityToken securityToken)
Constructor without usernameAttributeList
|
SecurityAssertionImpl(org.apache.cxf.ws.security.tokenstore.SecurityToken securityToken,
List<String> usernameAttributeList)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
List<org.opensaml.saml.saml2.core.AttributeStatement> |
getAttributeStatements()
Returns the list of attribute statements contained in the SecurityToken
|
List<org.opensaml.saml.saml2.core.AuthnStatement> |
getAuthnStatements()
Returns the list of authn statements contained in the SecurityToken
|
List<org.opensaml.saml.saml2.core.AuthzDecisionStatement> |
getAuthzDecisionStatements()
Returns the list of authz statements contained in the SecurityToken
|
String |
getIssuer()
Returns the name of the entity that issued the SecurityToken
|
Date |
getNotBefore()
Returns the earliest date that the assertion is valid
|
Date |
getNotOnOrAfter()
Returns the date that the assertion is invalid
|
Principal |
getPrincipal()
Returns the Principal contained within the SecurityToken
|
Set<Principal> |
getPrincipals()
Returns primary principal and all attributes as principals
|
org.apache.cxf.ws.security.tokenstore.SecurityToken |
getSecurityToken()
Returns the underlying SecurityToken that this object wraps
|
List<String> |
getSubjectConfirmations()
Returns the list of subject confirmations contained in the SecurityToken
|
String |
getTokenType()
Returns the token type URI for this assertion
|
boolean |
isPresentlyValid()
Returns true if checked while within the time bounds defined by NotBefore and NotOnOrAfter
|
String |
toString()
Returns a String representation of this Assertion
|
public SecurityAssertionImpl()
public SecurityAssertionImpl(org.apache.cxf.ws.security.tokenstore.SecurityToken securityToken)
securityToken
- - token to wrappublic Principal getPrincipal()
SecurityAssertion
getPrincipal
in interface SecurityAssertion
public Set<Principal> getPrincipals()
SecurityAssertion
getPrincipals
in interface SecurityAssertion
public String getIssuer()
SecurityAssertion
getIssuer
in interface SecurityAssertion
public List<org.opensaml.saml.saml2.core.AttributeStatement> getAttributeStatements()
SecurityAssertion
getAttributeStatements
in interface SecurityAssertion
public List<org.opensaml.saml.saml2.core.AuthnStatement> getAuthnStatements()
SecurityAssertion
getAuthnStatements
in interface SecurityAssertion
public List<org.opensaml.saml.saml2.core.AuthzDecisionStatement> getAuthzDecisionStatements()
SecurityAssertion
getAuthzDecisionStatements
in interface SecurityAssertion
public List<String> getSubjectConfirmations()
SecurityAssertion
getSubjectConfirmations
in interface SecurityAssertion
public String getTokenType()
SecurityAssertion
getTokenType
in interface SecurityAssertion
public org.apache.cxf.ws.security.tokenstore.SecurityToken getSecurityToken()
SecurityAssertion
getSecurityToken
in interface SecurityAssertion
public Date getNotBefore()
SecurityAssertion
getNotBefore
in interface SecurityAssertion
public Date getNotOnOrAfter()
SecurityAssertion
getNotOnOrAfter
in interface SecurityAssertion
public String toString()
SecurityAssertion
toString
in interface SecurityAssertion
toString
in class Object
public boolean isPresentlyValid()
SecurityAssertion
isPresentlyValid
in interface SecurityAssertion
This work is licensed under a Creative Commons Attribution 4.0 International License.