Class Credential
java.lang.Object
org.openqa.selenium.virtualauthenticator.Credential
A credential stored in a virtual authenticator.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Credential
createNonResidentCredential
(byte[] id, String rpId, PKCS8EncodedKeySpec privateKey, int signCount) Creates a non resident (i.e.static Credential
createResidentCredential
(byte[] id, String rpId, PKCS8EncodedKeySpec privateKey, byte[] userHandle, int signCount) Creates a resident (i.e.static Credential
Creates a credential from a map.byte[]
getId()
getRpId()
int
byte[]
boolean
toMap()
-
Method Details
-
createNonResidentCredential
public static Credential createNonResidentCredential(byte[] id, String rpId, PKCS8EncodedKeySpec privateKey, int signCount) Creates a non resident (i.e. stateless) credential. -
createResidentCredential
public static Credential createResidentCredential(byte[] id, String rpId, PKCS8EncodedKeySpec privateKey, byte[] userHandle, int signCount) Creates a resident (i.e. stateful) credential. -
fromMap
Creates a credential from a map. -
getId
public byte[] getId() -
isResidentCredential
public boolean isResidentCredential() -
getRpId
-
getPrivateKey
-
getUserHandle
public byte[] getUserHandle() -
getSignCount
public int getSignCount() -
toMap
-