Interface SecurityAssertion

All Superinterfaces:
Serializable

public interface SecurityAssertion extends Serializable
This class serves as the object that underpins a Subject or user
Author:
tustisos
  • Field Details

  • Method Details

    • getPrincipal

      Principal getPrincipal()
      Returns the Principal
      Returns:
      Principal
    • getIssuer

      String getIssuer()
      Returns the name of the entity that issued the token (if any)
      Returns:
      String - token issuer
    • getAttributeStatements

      List<AttributeStatement> getAttributeStatements()
      Returns the list of attribute statements
      Returns:
      List
    • getAuthnStatements

      List<AuthenticationStatement> getAuthnStatements()
      Returns the list of authn statements
      Returns:
      List
    • getSubjectConfirmations

      List<String> getSubjectConfirmations()
      Returns the list of subject confirmations
      Returns:
      List
    • getPrincipals

      Set<Principal> getPrincipals()
      Returns primary principal and all attributes as principals
      Returns:
      List
    • getTokenType

      String getTokenType()
      Returns the token type URI for this assertion
      Returns:
      either http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0 or http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1
    • getToken

      Object getToken()
      Returns the underlying token that this object wraps
      Returns:
      SecurityToken
    • getNotBefore

      Date getNotBefore()
      Returns the earliest date that the assertion is valid
      Returns:
      Date
    • getNotOnOrAfter

      Date getNotOnOrAfter()
      Returns the date that the assertion is invalid
      Returns:
      Date
    • toString

      String toString()
      Returns a String representation of this Assertion
      Overrides:
      toString in class Object
      Returns:
      String
    • getWeight

      int getWeight()
      Returns the weight associated with the type of authentication used to produce this assertion
      Returns:
      int
    • isPresentlyValid

      boolean isPresentlyValid()
      Returns true if checked while within the time bounds defined by NotBefore and NotOnOrAfter
      Returns:
      boolean