Class WebAuthn.Credential

    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
        See Also:
        Constant Field Values
      • rpId

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String rpId
        Relying Party ID the credential is scoped to. Must be set when adding a credential.
        OPTIONAL
      • privateKey

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String privateKey
        The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)
      • userHandle

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String userHandle
        An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)
        OPTIONAL
      • signCount

        🡅  🡇     🗕  🗗  🗖
        public final int signCount
        Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
      • largeBlob

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String largeBlob
        The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)
        OPTIONAL
      • backupEligibility

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Boolean backupEligibility
        Assertions returned by this credential will have the backup eligibility (BE) flag set to this value. Defaults to the authenticator's defaultBackupEligibility value.
        OPTIONAL
      • backupState

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Boolean backupState
        Assertions returned by this credential will have the backup state (BS) flag set to this value. Defaults to the authenticator's defaultBackupState value.
        OPTIONAL
      • userName

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String userName
        The credential's user.name property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name
        OPTIONAL
      • userDisplayName

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String userDisplayName
        The credential's user.displayName property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname
        OPTIONAL
    • Constructor Detail

      • Credential

        🡅  🡇     🗕  🗗  🗖
        public Credential​(ReadOnlyList<java.lang.Boolean> isPresent,
                          java.lang.String credentialId,
                          boolean isResidentCredential,
                          java.lang.String rpId,
                          java.lang.String privateKey,
                          java.lang.String userHandle,
                          int signCount,
                          java.lang.String largeBlob,
                          java.lang.Boolean backupEligibility,
                          java.lang.Boolean backupState,
                          java.lang.String userName,
                          java.lang.String userDisplayName)
        Constructor. Please review this class' fields for documentation.