Package Torello.Browser.BrowserAPI
Class WebAuthn.Credential
- java.lang.Object
-
- Torello.Browser.BaseType<WebAuthn.Credential>
-
- Torello.Browser.BrowserAPI.WebAuthn.Credential
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- WebAuthn
public static class WebAuthn.Credential extends BaseType<WebAuthn.Credential> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theWebAuthndomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.[No Description Provided by Google]- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/WebAuthn.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/WebAuthn.java
File Size: 4,920 Bytes Line Count: 120 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: WebAuthn$$Credential$$.java
- Open New Browser-Tab: WebAuthn$$Credential$$.java
File Size: 13,279 Bytes Line Count: 305 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description BooleanbackupEligibilityAssertions returned by this credential will have the backup eligibility (BE) flag set to this value.BooleanbackupStateAssertions returned by this credential will have the backup state (BS) flag set to this value.StringcredentialId[No Description Provided by Google]booleanisResidentCredential[No Description Provided by Google]StringlargeBlobThe large blob associated with the credential.StringprivateKeyThe ECDSA P-256 private key in PKCS#8 format.StringrpIdRelying Party ID the credential is scoped to.intsignCountSignature counter.StringuserDisplayNameThe credential's user.displayName property.StringuserHandleAn opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.StringuserNameThe credential's user.name property.
-
Constructor Summary
Constructors Constructor Description Credential(ReadOnlyList<Boolean> isPresent, String credentialId, boolean isResidentCredential, String rpId, String privateKey, String userHandle, int signCount, String largeBlob, Boolean backupEligibility, Boolean backupState, String userName, String userDisplayName)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static WebAuthn.CredentialfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<WebAuthn.Credential>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation 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
-
credentialId
public final java.lang.String credentialId
[No Description Provided by Google]
-
isResidentCredential
public final boolean isResidentCredential
[No Description Provided by Google]
-
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.
-
-
Method Detail
-
fromJSON
public static WebAuthn.Credential fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<WebAuthn.Credential> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-