Interface VirtualAuthenticator
@NullMarked
public interface VirtualAuthenticator
Represents a virtual authenticator.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddCredential(Credential credential) Injects a credential into the authenticator.getId()voidRemoves all the credentials from the authenticator.voidremoveCredential(byte[] credentialId) Removes a credential from the authenticator.voidremoveCredential(String credentialId) Removes a credential from the authenticator.voidsetUserVerified(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.
 
 -