Class Credential

java.lang.Object
org.openqa.selenium.virtualauthenticator.Credential

public class Credential extends Object
A credential stored in a virtual authenticator.
See Also:
  • 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

      public static Credential fromMap(Map<String,Object> map)
      Creates a credential from a map.
    • getId

      public byte[] getId()
    • isResidentCredential

      public boolean isResidentCredential()
    • getRpId

      public String getRpId()
    • getPrivateKey

      public PKCS8EncodedKeySpec getPrivateKey()
    • getUserHandle

      public byte[] getUserHandle()
    • getSignCount

      public int getSignCount()
    • toMap

      public Map<String,Object> toMap()