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.Date
getExpirationTime()
Returns the expiration time.Identifier
getID()
Returns the optional assertion identifier.Issuer
getIssuer()
Returns the issuer.Date
getIssueTime()
Returns the optional issue time.Subject
getSubject()
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,null
if not specified.id
- Unique identifier for the assertion,null
if 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,
null
if not specified.
-
getID
public Identifier getID()
Returns the optional assertion identifier.- Returns:
- The identifier,
null
if not specified.
-
-