Package com.yubico.webauthn.data
Class PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
java.lang.Object
com.yubico.webauthn.data.PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
- Enclosing class:
- PublicKeyCredentialDescriptor
public static class PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The credential ID of the public key credential the caller is referring to.toString()
transports
(@NonNull Optional<Set<AuthenticatorTransport>> transports) An OPTIONAL hint as to how the client might communicate with the managing authenticator of the public key credential the caller is referring to.transports
(Set<AuthenticatorTransport> transports) An OPTIONAL hint as to how the client might communicate with the managing authenticator of the public key credential the caller is referring to.type
(@NonNull PublicKeyCredentialType type) The type of the credential the caller is referring to.
-
Method Details
-
transports
public PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder transports(@NonNull @NonNull Optional<Set<AuthenticatorTransport>> transports) An OPTIONAL hint as to how the client might communicate with the managing authenticator of the public key credential the caller is referring to.This SHOULD be set to the unmodified value returned from
RegistrationResult.getKeyId()
.PublicKeyCredentialDescriptor.getTransports()
when the credential was registered. -
transports
public PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder transports(Set<AuthenticatorTransport> transports) An OPTIONAL hint as to how the client might communicate with the managing authenticator of the public key credential the caller is referring to.This SHOULD be set to the unmodified value returned from
RegistrationResult.getKeyId()
.PublicKeyCredentialDescriptor.getTransports()
when the credential was registered. -
type
public PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder type(@NonNull @NonNull PublicKeyCredentialType type) The type of the credential the caller is referring to.- Returns:
this
.
-
id
public PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder id(@NonNull @NonNull ByteArray id) The credential ID of the public key credential the caller is referring to.- Returns:
this
.
-
build
-
toString
-