@ThreadSafe public class StateValidator extends Object
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:
| Constructor | Description |
|---|---|
StateValidator() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
validate(State state,
com.nimbusds.jose.JWSAlgorithm jwsAlgorithm,
StateHash stateHash) |
Validates the specified state.
|
public StateValidator()
public static void validate(State state, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, StateHash stateHash) throws InvalidHashException
state - The state received at the redirection URI. Must
not be null.jwsAlgorithm - The JWS algorithm of the ID token. Must not be
be null.stateHash - The state hash, as set in the s_hash ID
token claim. Must not be null.InvalidHashException - If the received state doesn't match the
hash.Copyright © 2018 Connect2id Ltd.. All rights reserved.