public final class ThumbprintUtils extends Object
See RFC 7638.
| Constructor and Description |
|---|
ThumbprintUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Base64URL |
compute(JWK jwk)
Computes the SHA-256 thumbprint for the specified JWK.
|
static Base64URL |
compute(String hashAlg,
JWK jwk)
Computes the thumbprint for the specified JWK.
|
static Base64URL |
compute(String hashAlg,
LinkedHashMap<String,?> params)
Computes the thumbprint for the specified required JWK parameters.
|
public ThumbprintUtils()
public static Base64URL compute(JWK jwk) throws JOSEException
jwk - The JWK. Must not be null.JOSEException - If the SHA-256 hash algorithm is not
supported.public static Base64URL compute(String hashAlg, JWK jwk) throws JOSEException
hashAlg - The hash algorithm. Must not be null.jwk - The JWK. Must not be null.JOSEException - If the hash algorithm is not supported.public static Base64URL compute(String hashAlg, LinkedHashMap<String,?> params) throws JOSEException
hashAlg - The hash algorithm. Must not be null.params - The required JWK parameters, alphanumerically sorted
by parameter name and ready for JSON object
serialisation. Must not be null.JOSEException - If the hash algorithm is not supported.Copyright © 2020 Connect2id Ltd.. All rights reserved.