Class PublicKeyCredential<R extends AuthenticatorResponse>
java.lang.Object
org.springframework.security.web.webauthn.api.PublicKeyCredential<R>
PublicKeyCredential
contains the attributes that are returned to the caller when a new credential is
created, or a new assertion is requested.
- Since:
- 6.4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AuthenticatorResponse>
PublicKeyCredential.PublicKeyCredentialBuilder<T>builder()
Creates a newPublicKeyCredential.PublicKeyCredentialBuilder
The authenticatorAttachment reports the authenticator attachment modality in effect at the time the navigator.credentials.create() or navigator.credentials.get() methods successfully complete.The clientExtensionsResults is a mapping of extension identifier to client extension output.getId()
The id attribute is inherited from Credential, though PublicKeyCredential overrides Credential's getter, instead returning the base64url encoding of the data contained in the object's [[identifier]] internal slot.getRawId()
The rawId returns the raw identifier.The response to the client's request to either create a public key credential, or generate an authentication assertion.getType()
The type attribute returns the value of the object's interface object's [[type]] slot, which specifies the credential type represented by this object.
-
Method Details
-
getId
The id attribute is inherited from Credential, though PublicKeyCredential overrides Credential's getter, instead returning the base64url encoding of the data contained in the object's [[identifier]] internal slot. -
getType
The type attribute returns the value of the object's interface object's [[type]] slot, which specifies the credential type represented by this object.- Returns:
- the credential type
-
getRawId
The rawId returns the raw identifier.- Returns:
- the raw id
-
getResponse
The response to the client's request to either create a public key credential, or generate an authentication assertion.- Returns:
- the response
-
getAuthenticatorAttachment
The authenticatorAttachment reports the authenticator attachment modality in effect at the time the navigator.credentials.create() or navigator.credentials.get() methods successfully complete.- Returns:
- the authenticator attachment
-
getClientExtensionResults
The clientExtensionsResults is a mapping of extension identifier to client extension output.- Returns:
- the extension results
-
builder
public static <T extends AuthenticatorResponse> PublicKeyCredential.PublicKeyCredentialBuilder<T> builder()Creates a newPublicKeyCredential.PublicKeyCredentialBuilder
- Type Parameters:
T
- the response type- Returns:
- the
PublicKeyCredential.PublicKeyCredentialBuilder
-