Class Credential


  • public class Credential
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Credential​(java.lang.String credentialId, java.lang.Boolean isResidentCredential, java.util.Optional<java.lang.String> rpId, java.lang.String privateKey, java.util.Optional<java.lang.String> userHandle, java.lang.Integer signCount, java.util.Optional<java.lang.String> largeBlob)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCredentialId()  
      java.lang.Boolean getIsResidentCredential()  
      java.util.Optional<java.lang.String> getLargeBlob()
      The large blob associated with the credential.
      java.lang.String getPrivateKey()
      The ECDSA P-256 private key in PKCS#8 format.
      java.util.Optional<java.lang.String> getRpId()
      Relying Party ID the credential is scoped to.
      java.lang.Integer getSignCount()
      Signature counter.
      java.util.Optional<java.lang.String> getUserHandle()
      An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Credential

        public Credential​(java.lang.String credentialId,
                          java.lang.Boolean isResidentCredential,
                          java.util.Optional<java.lang.String> rpId,
                          java.lang.String privateKey,
                          java.util.Optional<java.lang.String> userHandle,
                          java.lang.Integer signCount,
                          java.util.Optional<java.lang.String> largeBlob)
    • Method Detail

      • getCredentialId

        public java.lang.String getCredentialId()
      • getIsResidentCredential

        public java.lang.Boolean getIsResidentCredential()
      • getRpId

        public java.util.Optional<java.lang.String> getRpId()
        Relying Party ID the credential is scoped to. Must be set when adding a credential.
      • getPrivateKey

        public java.lang.String getPrivateKey()
        The ECDSA P-256 private key in PKCS#8 format.
      • getUserHandle

        public java.util.Optional<java.lang.String> getUserHandle()
        An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
      • getSignCount

        public java.lang.Integer getSignCount()
        Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
      • getLargeBlob

        public java.util.Optional<java.lang.String> getLargeBlob()
        The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension