Package io.quarkus.security.webauthn
Record Class WebAuthnCredentialRecord.RequiredPersistedData
java.lang.Object
java.lang.Record
io.quarkus.security.webauthn.WebAuthnCredentialRecord.RequiredPersistedData
- Enclosing class:
WebAuthnCredentialRecord
public static record WebAuthnCredentialRecord.RequiredPersistedData(String username, String credentialId, UUID aaguid, byte[] publicKey, long publicKeyAlgorithm, long counter)
extends Record
Record holding all the required persistent fields for logging back someone over WebAuthn.
-
Constructor Summary
ConstructorsConstructorDescriptionRequiredPersistedData(String username, String credentialId, UUID aaguid, byte[] publicKey, long publicKeyAlgorithm, long counter) Creates an instance of aRequiredPersistedDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionaaguid()Returns the value of theaaguidrecord component.longcounter()Returns the value of thecounterrecord component.Returns the value of thecredentialIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns a PEM-encoded representation of the public key.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of thepublicKeyrecord component.longReturns the value of thepublicKeyAlgorithmrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
RequiredPersistedData
public RequiredPersistedData(String username, String credentialId, UUID aaguid, byte[] publicKey, long publicKeyAlgorithm, long counter) Creates an instance of aRequiredPersistedDatarecord class.- Parameters:
username- the value for theusernamerecord componentcredentialId- the value for thecredentialIdrecord componentaaguid- the value for theaaguidrecord componentpublicKey- the value for thepublicKeyrecord componentpublicKeyAlgorithm- the value for thepublicKeyAlgorithmrecord componentcounter- the value for thecounterrecord component
-
-
Method Details
-
getPublicKeyPEM
Returns a PEM-encoded representation of the public key. This is a utility method you can use as an alternate for storing the binary public key if you do not want to store abyte[]and prefer strings.- Returns:
- a PEM-encoded representation of the public key
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
credentialId
Returns the value of thecredentialIdrecord component.- Returns:
- the value of the
credentialIdrecord component
-
aaguid
Returns the value of theaaguidrecord component.- Returns:
- the value of the
aaguidrecord component
-
publicKey
public byte[] publicKey()Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
publicKeyAlgorithm
public long publicKeyAlgorithm()Returns the value of thepublicKeyAlgorithmrecord component.- Returns:
- the value of the
publicKeyAlgorithmrecord component
-
counter
public long counter()Returns the value of thecounterrecord component.- Returns:
- the value of the
counterrecord component
-