Serializable, Comparable<Identifier>, net.minidev.json.JSONAware@Immutable public final class CodeHash extends HashClaim
c_hash).
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor | Description |
|---|---|
CodeHash(String value) |
Creates a new authorisation code hash with the specified value.
|
| Modifier and Type | Method | 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(Object object) |
|
static boolean |
isRequiredInIDTokenClaims(ResponseType responseType) |
Checks if an authorisation code hash claim must be included in ID
tokens for the specified response type.
|
computeValue, getMessageDigestInstancecompareTo, getValue, hashCode, toJSONString, toStringpublic static boolean isRequiredInIDTokenClaims(ResponseType responseType)
responseType - The he OpenID Connect response type. Must not be
null.true if the code hash is required, else
false.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(Object object)
equals in class IdentifierCopyright © 2018 Connect2id Ltd.. All rights reserved.