@Immutable public final class CodeHash extends HashClaim
c_hash).
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
CodeHash(java.lang.String value)
Creates a new authorisation code hash with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
static CodeHash |
compute(AuthorizationCode code,
com.nimbusds.jose.JWSAlgorithm alg)
Computes the hash for the specified authorisation code and reference
JSON Web Signature (JWS) algorithm.
|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals(). |
computeValue, getMessageDigestInstancecompareTo, getValue, hashCode, toJSONString, toStringpublic CodeHash(java.lang.String value)
value - The authorisation code hash value. Must not be
null.public static CodeHash compute(AuthorizationCode code, com.nimbusds.jose.JWSAlgorithm alg)
code - The authorisation code. 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.