@Immutable public final class AccessTokenHash extends HashClaim
at_hash).
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
AccessTokenHash(java.lang.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(java.lang.Object object)
Overrides
Object.equals(). |
computeValue, getMessageDigestInstancecompareTo, getValue, hashCode, toJSONString, toStringpublic AccessTokenHash(java.lang.String value)
value - The access token hash value. Must not be null.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(java.lang.Object object)
IdentifierObject.equals().equals in class Identifierobject - The object to compare to.true if the objects have the same value, otherwise
false.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.