Class AssertionDetails
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.assertions.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 Summary
Constructors Constructor Description AssertionDetails(Issuer issuer, Subject subject, List<Audience> audience, Date iat, Date exp, Identifier id)Creates a new assertion details instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Audience>getAudience()Returns the audience.DategetExpirationTime()Returns the expiration time.IdentifiergetID()Returns the optional assertion identifier.IssuergetIssuer()Returns the issuer.DategetIssueTime()Returns the optional issue time.SubjectgetSubject()Returns the subject.
-
-
-
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 benull.subject- The subject. Must not benull.audience- The audience, typically including the URI of the authorisation server's token endpoint. Must not benull.exp- The expiration time. Must not benull.iat- The time at which the assertion was issued,nullif not specified.id- Unique identifier for the assertion,nullif not specified.
-
-
Method Detail
-
getSubject
public Subject getSubject()
Returns the subject.- Returns:
- The subject.
-
getAudience
public List<Audience> getAudience()
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,
nullif not specified.
-
getID
public Identifier getID()
Returns the optional assertion identifier.- Returns:
- The identifier,
nullif not specified.
-
-