Class StateValidator
java.lang.Object
com.nimbusds.openid.connect.sdk.validators.StateValidator
State validator, using the optional
s_hash
ID token claim. Required
for applications that must comply with Financial Services – Financial API -
Part 2: Read and Write API Security Profile.
Related specifications:
- Financial Services – Financial API - Part 2: Read and Write API Security Profile, section 5.1.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StateValidator
public StateValidator()
-
-
Method Details
-
validate
public static void validate(State state, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, StateHash stateHash) throws InvalidHashException Validates the specified state.- Parameters:
state
- The state received at the redirection URI. Must not benull
.jwsAlgorithm
- The JWS algorithm of the ID token. Must not be benull
.stateHash
- The state hash, as set in thes_hash
ID token claim. Must not benull
.- Throws:
InvalidHashException
- If the received state doesn't match the hash.
-