Class AssertionDetails

  • Direct Known Subclasses:
    JWTAssertionDetails, SAML2AssertionDetails

    public abstract class AssertionDetails
    extends Object
    Common assertion details used in JWT bearer assertions and SAML 2.0 bearer assertions.

    Related specifications:

    • Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants (RFC 7521), section 5.1.
    • Constructor Detail

      • AssertionDetails

        public AssertionDetails​(Issuer issuer,
                                Subject subject,
                                List<Audience> audience,
                                Date iat,
                                Date exp,
                                Identifier id)
        Creates a new assertion details instance.
        Parameters:
        issuer - The issuer. Must not be null.
        subject - The subject. Must not be null.
        audience - The audience, typically including the URI of the authorisation server's token endpoint. Must not be null.
        exp - The expiration time. Must not be null.
        iat - The time at which the assertion was issued, null if not specified.
        id - Unique identifier for the assertion, null if not specified.
    • Method Detail

      • getIssuer

        public Issuer getIssuer()
        Returns the issuer.
        Returns:
        The issuer.
      • getSubject

        public Subject getSubject()
        Returns the subject.
        Returns:
        The subject.
      • getAudience

        public List<AudiencegetAudience()
        Returns the audience.
        Returns:
        The audience, typically including the URI of the authorisation server's token endpoint.
      • getExpirationTime

        public Date getExpirationTime()
        Returns the expiration time.
        Returns:
        The expiration time.
      • getIssueTime

        public Date getIssueTime()
        Returns the optional issue time.
        Returns:
        The issue time, null if not specified.
      • getID

        public Identifier getID()
        Returns the optional assertion identifier.
        Returns:
        The identifier, null if not specified.