Class WebAuthnCredential.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.WebAuthnCredential.Builder
- Enclosing class:
- WebAuthnCredential
Builder for this class.
-
Field Summary
Fields -
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
-
dateAdded
-
dateLastUsed
-
label
-
webauthnkey
-
uvCapable
-
passwordlessAuthorized
-
backupEligible
-
backupStatus
-
aaguid
-
registeredAs
-
transports
-
additionalProperties
-
-
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.
-