Interface VirtualAuthenticator
public interface VirtualAuthenticator
Represents a virtual authenticator.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCredential
(Credential credential) Injects a credential into the authenticator.getId()
void
Removes all the credentials from the authenticator.void
removeCredential
(byte[] credentialId) Removes a credential from the authenticator.void
removeCredential
(String credentialId) Removes a credential from the authenticator.void
setUserVerified
(boolean verified) Sets whether the authenticator will simulate success or fail on user verification.
-
Method Details
-
getId
String getId()- Returns:
- the authenticator unique identifier.
-
addCredential
Injects a credential into the authenticator. -
getCredentials
List<Credential> getCredentials()- Returns:
- the list of credentials owned by the authenticator.
-
removeCredential
void removeCredential(byte[] credentialId) Removes a credential from the authenticator.- Parameters:
credentialId
- the ID of the credential to be removed.
-
removeCredential
Removes a credential from the authenticator.- Parameters:
credentialId
- the ID of the credential to be removed as a base64url string.
-
removeAllCredentials
void removeAllCredentials()Removes all the credentials from the authenticator. -
setUserVerified
void setUserVerified(boolean verified) Sets whether the authenticator will simulate success or fail on user verification.- Parameters:
verified
- true if the authenticator will pass user verification, false otherwise.
-