Interface VirtualAuthenticator
-
public interface VirtualAuthenticator
Represents a virtual authenticator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCredential(Credential credential)
Injects a credential into the authenticator.java.util.List<Credential>
getCredentials()
java.lang.String
getId()
void
removeAllCredentials()
Removes all the credentials from the authenticator.void
removeCredential(byte[] credentialId)
Removes a credential from the authenticator.void
removeCredential(java.lang.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 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.
-
-