Class StateHash
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.openid.connect.sdk.claims.HashClaim
-
- com.nimbusds.openid.connect.sdk.claims.StateHash
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
@Immutable public class StateHash extends HashClaim
State hash (s_hash
).Related specifications:
- Financial Services – Financial API - Part 2: Read and Write API Security Profile, section 5.1.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StateHash
compute(State state, com.nimbusds.jose.JWSAlgorithm alg)
Computes the hash for the specified state and reference JSON Web Signature (JWS) algorithm.boolean
equals(Object object)
-
Methods inherited from class com.nimbusds.openid.connect.sdk.claims.HashClaim
computeValue, getMessageDigestInstance
-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Method Detail
-
compute
public static StateHash compute(State state, com.nimbusds.jose.JWSAlgorithm alg)
Computes the hash for the specified state and reference JSON Web Signature (JWS) algorithm.- Parameters:
state
- The state. Must not benull
.alg
- The reference JWS algorithm. Must not benull
.- Returns:
- The state hash, or
null
if the JWS algorithm is not supported.
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classIdentifier
-
-