Class StateValidator
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.validators.StateValidator
-
@ThreadSafe public class StateValidator extends Object
State validator, using the optionals_hashID 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 Constructor Description StateValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidate(State state, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, StateHash stateHash)Validates the specified state.
-
-
-
Constructor Detail
-
StateValidator
public StateValidator()
-
-
Method Detail
-
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_hashID token claim. Must not benull.- Throws:
InvalidHashException- If the received state doesn't match the hash.
-
-