Package org.keycloak.services.util
Class MtlsHoKTokenUtil
java.lang.Object
org.keycloak.services.util.MtlsHoKTokenUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProtocol mapper that binds access tokens to the client's mTLS certificate by adding the "cnf" (confirmation) claim with a "x5t#S256" certificate thumbprint. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final org.jboss.logging.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.keycloak.representations.AccessToken.ConfirmationbindTokenWithClientCertificate(org.keycloak.http.HttpRequest request, org.keycloak.models.KeycloakSession session) static Stream<Map.Entry<org.keycloak.models.ProtocolMapperModel,org.keycloak.protocol.ProtocolMapper>> static booleanverifyTokenBindingWithClientCertificate(org.keycloak.representations.AccessToken token, org.keycloak.http.HttpRequest request, org.keycloak.models.KeycloakSession session)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
CERT_VERIFY_ERROR_DESC
- See Also:
-
-
Constructor Details
-
MtlsHoKTokenUtil
public MtlsHoKTokenUtil()
-
-
Method Details
-
getTransientProtocolMapper
-
bindTokenWithClientCertificate
public static org.keycloak.representations.AccessToken.Confirmation bindTokenWithClientCertificate(org.keycloak.http.HttpRequest request, org.keycloak.models.KeycloakSession session) -
verifyTokenBindingWithClientCertificate
public static boolean verifyTokenBindingWithClientCertificate(org.keycloak.representations.AccessToken token, org.keycloak.http.HttpRequest request, org.keycloak.models.KeycloakSession session)
-