Interface VirtualAuthenticator
-
public interface VirtualAuthenticatorRepresents a virtual authenticator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCredential(Credential credential)Injects a credential into the authenticator.java.util.List<Credential>getCredentials()java.lang.StringgetId()voidremoveAllCredentials()Removes all the credentials from the authenticator.voidremoveCredential(byte[] credentialId)Removes a credential from the authenticator.voidremoveCredential(java.lang.String credentialId)Removes a credential from the authenticator.voidsetUserVerified(boolean verified)Sets whether the authenticator will simulate success or fail on user verification.
-
-
-
Method Detail
-
getId
java.lang.String getId()
- Returns:
- the authenticator unique identifier.
-
addCredential
void addCredential(Credential credential)
Injects a credential into the authenticator.
-
getCredentials
java.util.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
void removeCredential(java.lang.String credentialId)
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.
-
-