Class WebAuthnCredential.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.WebAuthnCredential.Builder
- Enclosing class:
- WebAuthnCredential
Builder for this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringA unique identifier that conveys the authenticator's make and model, or the passkey's provider identity.Any additional properties not explicitly captured by this class are added to this map.private BooleanIf true, this credential can be used from multiple devices.private BooleanIf true, this credential has been backed up and can be used from multiple devices.private StringFree-form label for the WebAuthn credential.private IntegerThe date the WebAuthn credential was registered in Duo.private IntegerThe date the WebAuthn credential was last used.private StringIndicates the type of WebAuthn credential.private BooleanIf true, this credential can be used for both MFA and Passwordless authentication.private StringThe registration flow that was used to register this WebAuthn credential.The transports the authenticator can use to communicate with a client.private BooleanIs the WebAuthn authenticator associated with this credential capable of identifying a user via a suitable authorization gesture (User Verification).private StringThe WebAuthn credential's registration identifier. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aWebAuthnCredential.withAaguid(String guid) Build a unique identifier that conveys the authenticator's make and model, or the passkey's provider identity.withAdditionalProperty(String name, Object value) Build any additional property not explicitly listed.withBackupEligible(Boolean flag) Build if this credential can be used from multiple devices.withBackupStatus(Boolean flag) Build if this credential has been backed up and can be used from multiple devices.withCredentialName(String name) Build the credential namewithDateAdded(Integer date) Build the date the WebAuthn credential was last usedBuild the type of WebAuthn credential.Build if this credential can be used for both MFA and Passwordless authentication.withRegisteredAs(String regAs) Build the registration flow that was used to register this WebAuthn credential.withTransports(List<String> trans) Build the transports the authenticator can use to communicate with a client.withUvCapable(Boolean flag) Build if the WebAuthn authenticator associated with this credential is capable of identifying a user via a suitable authorization gesture.withWebauthnkey(String key) Build the WebAuthn credential's registration identifier.
-
Field Details
-
credentialName
Free-form label for the WebAuthn credential. -
dateAdded
The date the WebAuthn credential was registered in Duo. -
dateLastUsed
The date the WebAuthn credential was last used. -
label
Indicates the type of WebAuthn credential. -
webauthnkey
The WebAuthn credential's registration identifier. -
uvCapable
Is the WebAuthn authenticator associated with this credential capable of identifying a user via a suitable authorization gesture (User Verification). -
passwordlessAuthorized
If true, this credential can be used for both MFA and Passwordless authentication. If false, this credential can only be used for MFA authentication. -
backupEligible
If true, this credential can be used from multiple devices. If false, this credential can only be used on one device. -
backupStatus
If true, this credential has been backed up and can be used from multiple devices. If false, this credential has not been backed up. -
aaguid
A unique identifier that conveys the authenticator's make and model, or the passkey's provider identity. This value cannot be verified as accurate by Duo. -
registeredAs
The registration flow that was used to register this WebAuthn credential. One of platform, cross-platform, or unknown. -
transports
The transports the authenticator can use to communicate with a client. -
additionalProperties
Any additional properties not explicitly captured by this class are added to this map.
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withCredentialName
Build the credential name- Parameters:
name- the credential name- Returns:
- this
-
withDateAdded
Build the date the WebAuthn credential was last used- Parameters:
date- the date added- Returns:
- this
-
withLabel
Build the type of WebAuthn credential.- Parameters:
labelIn- the label- Returns:
- this
-
withWebauthnkey
Build the WebAuthn credential's registration identifier.- Parameters:
key- the webauthnkey- Returns:
- this
-
withUvCapable
Build if the WebAuthn authenticator associated with this credential is capable of identifying a user via a suitable authorization gesture.- Parameters:
flag- the uv_capable flag- Returns:
- this
-
withPasswordlessAuthorized
Build if this credential can be used for both MFA and Passwordless authentication.- Parameters:
flag- the passwordless_authorized flag- Returns:
- this
-
withBackupEligible
Build if this credential can be used from multiple devices.- Parameters:
flag- the backup_eligible flag- Returns:
- this
-
withBackupStatus
Build if this credential has been backed up and can be used from multiple devices.- Parameters:
flag- the backup_status flag- Returns:
- this
-
withAaguid
Build a unique identifier that conveys the authenticator's make and model, or the passkey's provider identity.- Parameters:
guid- the aaguid value- Returns:
- this
-
withRegisteredAs
Build the registration flow that was used to register this WebAuthn credential.- Parameters:
regAs- the registered_as value- Returns:
- this
-
withTransports
Build the transports the authenticator can use to communicate with a client.- Parameters:
trans- the transports- Returns:
- this
-
withAdditionalProperty
public WebAuthnCredential.Builder withAdditionalProperty(@Nonnull String name, @Nullable Object value) Build any additional property not explicitly listed.- Parameters:
name- the property namevalue- the property value- Returns:
- this
-
build
Build aWebAuthnCredential.- Returns:
- an initialised, immutable, and safely published
WebAuthnCredentialinstance.
-