-
Method Summary
used to build a cNonce in any style.
default void
default void
Marks a verified cNonce value as consumed.
default void
Marks a verified cNonce value as consumed.
default void
Checks if cNonce is so far not yet consumed (without consuming it) for fail-fast purposes.
default boolean
default boolean
void
Verifies the validity of a cNonce value and returns its verified token representation.
-
Method Details
-
buildCNonce
used to build a cNonce in any style. For jwt-based cNonces we will additionally require the audience-values that
should be added into the cNonce
- Parameters:
audiences - the audiences for jwt-based cNonces
additionalDetails - additional attributes that might be required to build the cNonce and that are handler
specific
- Returns:
- the cNonce in string representation
-
verifyCNonce
- Parameters:
cNonce - the cNonce to validate
audiences - the expected audiences for jwt-based cNonces
additionalDetails - additional attributes that might be required to build the cNonce and that are handler
specific
- Throws:
VerificationException - if the cNonce cannot be verified
-
verifyCNonceAndGetToken
Verifies the validity of a cNonce value and returns its verified token representation.
- Parameters:
cNonce - the cNonce to validate
audiences - the expected audiences for jwt-based cNonces
additionalDetails - additional attributes that might be required to build the cNonce and that are handler
specific
- Returns:
- the verified cNonce token representation
- Throws:
VerificationException - if the cNonce cannot be verified
-
supportsCNonceTokenRetrieval
default boolean supportsCNonceTokenRetrieval()
- Returns:
true if this handler can return the verified cNonce token representation.
-
consumeCNonce
Marks a verified cNonce value as consumed.
- Parameters:
cNonce - the cNonce to consume
- Throws:
VerificationException
-
consumeCNonce
Marks a verified cNonce value as consumed.
- Parameters:
cNonce - the cNonce to consume
cNonceToken - the already verified cNonce token
- Throws:
VerificationException
-
supportsCNonceConsumption
default boolean supportsCNonceConsumption()
- Returns:
true if this handler can mark cNonce values as consumed.
-
ensureCNonceNotYetConsumed
Checks if cNonce is so far not yet consumed (without consuming it) for fail-fast purposes.
- Throws:
VerificationException - if already consumed or check not supported.
-
close
default void close()
- Specified by:
close in interface Provider