Interface CNonceHandler
- All Superinterfaces:
org.keycloak.provider.Provider
- All Known Implementing Classes:
JwtCNonceHandler
public interface CNonceHandler
extends org.keycloak.provider.Provider
- Author:
- Pascal Knüppel
-
Method Summary
Modifier and TypeMethodDescriptionused to build a cNonce in any style.default voidclose()voidmust verify the validity of a cNonce value that has been issued by thebuildCNonce(List, Map)method.
-
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 cNoncesadditionalDetails- additional attributes that might be required to build the cNonce and that are handler specific- Returns:
- the cNonce in string representation
-
verifyCNonce
void verifyCNonce(String cNonce, List<String> audiences, @Nullable Map<String, Object> additionalDetails) throws org.keycloak.common.VerificationExceptionmust verify the validity of a cNonce value that has been issued by thebuildCNonce(List, Map)method.- Parameters:
cNonce- the cNonce to validateaudiences- the expected audiences for jwt-based cNoncesadditionalDetails- additional attributes that might be required to build the cNonce and that are handler specific- Throws:
org.keycloak.common.VerificationException
-
close
default void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-