@Immutable public final class AccessTokenHash extends HashClaim
at_hash).
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
AccessTokenHash(String value)
Creates a new access token hash with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
static AccessTokenHash |
compute(AccessToken accessToken,
com.nimbusds.jose.JWSAlgorithm alg)
Computes the hash for the specified access token and reference JSON
Web Signature (JWS) algorithm.
|
boolean |
equals(Object object) |
static boolean |
isRequiredInIDTokenClaims(ResponseType responseType)
Checks if an access token hash claim must be included in ID tokens
for the specified response type.
|
computeValue, getMessageDigestInstancecompareTo, getValue, hashCode, toJSONString, toStringpublic AccessTokenHash(String value)
value - The access token hash value. Must not be null.public static boolean isRequiredInIDTokenClaims(ResponseType responseType)
responseType - The OpenID Connect response type. Must not be
null.true if the access token hash is required, else
false.public static AccessTokenHash compute(AccessToken accessToken, com.nimbusds.jose.JWSAlgorithm alg)
accessToken - The access token. Must not be null.alg - The reference JWS algorithm. Must not be
null.null if the JWS algorithm
is not supported.public boolean equals(Object object)
equals in class IdentifierCopyright © 2016 Connect2id Ltd.. All Rights Reserved.