Class AssertionDetails
java.lang.Object
com.nimbusds.oauth2.sdk.assertions.AssertionDetails
- Direct Known Subclasses:
JWTAssertionDetails,SAML2AssertionDetails
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)
-
Constructor Summary
ConstructorsConstructorDescriptionAssertionDetails(Issuer issuer, Subject subject, List<Audience> audience, Date iat, Date exp, Identifier id) Creates a new assertion details instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the audience.Returns the expiration time.getID()Returns the optional assertion identifier.Returns the issuer.Returns the optional issue time.Returns the subject.
-
Constructor Details
-
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 Details
-
getIssuer
Returns the issuer.- Returns:
- The issuer.
-
getSubject
Returns the subject.- Returns:
- The subject.
-
getAudience
Returns the audience.- Returns:
- The audience, typically a singleton list with the authorisation server issuer URI.
-
getExpirationTime
Returns the expiration time.- Returns:
- The expiration time.
-
getIssueTime
Returns the optional issue time.- Returns:
- The issue time,
nullif not specified.
-
getID
Returns the optional assertion identifier.- Returns:
- The identifier,
nullif not specified.
-