public final class OAuth2TokenIntrospection
extends java.lang.Object
implements org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor, java.io.Serializable
OAuth2TokenIntrospectionClaimAccessor,
Section 2.2 Introspection Response,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
OAuth2TokenIntrospection.Builder
A builder for
OAuth2TokenIntrospection. |
| Modifier and Type | Method and Description |
|---|---|
static OAuth2TokenIntrospection.Builder |
builder()
|
static OAuth2TokenIntrospection.Builder |
builder(boolean active)
Constructs a new
OAuth2TokenIntrospection.Builder initialized with the provided active claim. |
java.util.Map<java.lang.String,java.lang.Object> |
getClaims()
Returns the claims in the Token Introspection Response.
|
static OAuth2TokenIntrospection.Builder |
withClaims(java.util.Map<java.lang.String,java.lang.Object> claims)
Constructs a new
OAuth2TokenIntrospection.Builder initialized with the provided claims. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.util.Map<java.lang.String,java.lang.Object> getClaims()
getClaims in interface org.springframework.security.oauth2.core.ClaimAccessorMap of the claimspublic static OAuth2TokenIntrospection.Builder builder()
OAuth2TokenIntrospection.Builderpublic static OAuth2TokenIntrospection.Builder builder(boolean active)
OAuth2TokenIntrospection.Builder initialized with the provided active claim.active - true if the token is currently active, false otherwiseOAuth2TokenIntrospection.Builderpublic static OAuth2TokenIntrospection.Builder withClaims(java.util.Map<java.lang.String,java.lang.Object> claims)
OAuth2TokenIntrospection.Builder initialized with the provided claims.claims - the claims to initialize the builderOAuth2TokenIntrospection.Builder