public class WebAuthnCredentialProvider extends Object implements CredentialProvider<WebAuthnCredentialModel>, CredentialInputValidator
| Constructor and Description |
|---|
WebAuthnCredentialProvider(KeycloakSession session,
com.webauthn4j.converter.util.ObjectConverter objectConverter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getDefaultCredentialpublic WebAuthnCredentialProvider(KeycloakSession session, com.webauthn4j.converter.util.ObjectConverter objectConverter)
public CredentialModel createCredential(RealmModel realm, UserModel user, WebAuthnCredentialModel credentialModel)
createCredential in interface CredentialProvider<WebAuthnCredentialModel>public boolean deleteCredential(RealmModel realm, UserModel user, String credentialId)
deleteCredential in interface CredentialProvider<WebAuthnCredentialModel>public WebAuthnCredentialModel getCredentialFromModel(CredentialModel model)
getCredentialFromModel in interface CredentialProvider<WebAuthnCredentialModel>public WebAuthnCredentialModel getCredentialModelFromCredentialInput(CredentialInput input, String userLabel)
input - should be typically WebAuthnCredentialModelInputuserLabel - label for the credentialpublic boolean supportsCredentialType(String credentialType)
supportsCredentialType in interface CredentialInputValidatorpublic boolean isConfiguredFor(RealmModel realm, UserModel user, String credentialType)
isConfiguredFor in interface CredentialInputValidatorpublic boolean isValid(RealmModel realm, UserModel user, CredentialInput input)
CredentialInputValidatorisValid in interface CredentialInputValidatorrealm - The realm in which to which the credential belongs touser - The user for which to test the credentialinput - the credential details to verifypublic String getType()
getType in interface CredentialProvider<WebAuthnCredentialModel>public void dumpCredentialModel(WebAuthnCredentialModel credential, WebAuthnCredentialModelInput auth)
public CredentialTypeMetadata getCredentialTypeMetadata(CredentialTypeMetadataContext metadataContext)
getCredentialTypeMetadata in interface CredentialProvider<WebAuthnCredentialModel>protected KeycloakSession getKeycloakSession()
Copyright © 2021 JBoss by Red Hat. All rights reserved.