Class CredentialCreationOptionsParameters.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.admin.CredentialCreationOptionsParameters.Builder
- All Implemented Interfaces:
CredentialCreationOptionsParameters.IAttestationConveyancePreferenceStage,CredentialCreationOptionsParameters.IBuildStage,CredentialCreationOptionsParameters.IChallengeStage,CredentialCreationOptionsParameters.IDisplayNameStage,CredentialCreationOptionsParameters.IExcludeCredentialsStage,CredentialCreationOptionsParameters.INameStage,CredentialCreationOptionsParameters.IResidentKeyRequirementStage,CredentialCreationOptionsParameters.IUserHandleStage,CredentialCreationOptionsParameters.IUserVerificationRequirementStage
- Enclosing class:
- CredentialCreationOptionsParameters
public static final class CredentialCreationOptionsParameters.Builder
extends Object
implements CredentialCreationOptionsParameters.IUserVerificationRequirementStage, CredentialCreationOptionsParameters.IChallengeStage, CredentialCreationOptionsParameters.IExcludeCredentialsStage, CredentialCreationOptionsParameters.INameStage, CredentialCreationOptionsParameters.IDisplayNameStage, CredentialCreationOptionsParameters.IResidentKeyRequirementStage, CredentialCreationOptionsParameters.IUserHandleStage, CredentialCreationOptionsParameters.IAttestationConveyancePreferenceStage, CredentialCreationOptionsParameters.IBuildStage
Builder class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.yubico.webauthn.data.AttestationConveyancePreferenceThe Attestation conveyance preference.private com.yubico.webauthn.data.AuthenticatorAttachmentThe AuthenticatorAttachment requirement.private byte[]The challenge sent to the authenticator in registration ceremonies.private StringThe user.displayName supplied to the authenticator during registration.private booleanEnable the credential properties extenions.private Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor>Credentials that have already been registered with the IdP.private StringThe user.name.private com.yubico.webauthn.data.ResidentKeyRequirementThe requirement on registering a ResidentKey.private byte[]The userhandle supplied to the authenticator during registration.private com.yubico.webauthn.data.UserVerificationRequirementDoes the authentication/registration require user verification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the options.withAttestationConveyancePreference(com.yubico.webauthn.data.AttestationConveyancePreference preference) The attestation conveyance preference.withAuthenticatorAttachment(com.yubico.webauthn.data.AuthenticatorAttachment attachment) The AuthenticatorAttachment requirement.withChallenge(byte[] challengeIn) The challenge sent to the authenticator in registration ceremonies.withCredentialPropertiesExt(boolean credProps) Is the credential properties extension enabled?withDisplayName(String dispName) The user.displayName supplied to the authenticator during registration.withExcludeCredentials(Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> exclude) Credentials that have already been registered with the IdP.The user.name of the user identity.withResidentKeyRequirement(com.yubico.webauthn.data.ResidentKeyRequirement residentKeyReq) The requirement on registering a ResidentKey.withUserId(byte[] id) The user.id supplied to the authenticator during registration.withUserVerificationRequirement(com.yubico.webauthn.data.UserVerificationRequirement uvRequirement) Does the authentication/registration require user verification.
-
Field Details
-
userVerificationRequirement
private com.yubico.webauthn.data.UserVerificationRequirement userVerificationRequirementDoes the authentication/registration require user verification. -
challenge
private byte[] challengeThe challenge sent to the authenticator in registration ceremonies. -
excludeCredentials
Credentials that have already been registered with the IdP. -
name
The user.name. -
residentKeyRequirement
private com.yubico.webauthn.data.ResidentKeyRequirement residentKeyRequirementThe requirement on registering a ResidentKey. Also know as a discoverable credential. -
userId
private byte[] userIdThe userhandle supplied to the authenticator during registration. As generated by the IdP. -
authenticatorAttachment
private com.yubico.webauthn.data.AuthenticatorAttachment authenticatorAttachmentThe AuthenticatorAttachment requirement.nullwould represent either possibility. -
attestationConveyancePreference
private com.yubico.webauthn.data.AttestationConveyancePreference attestationConveyancePreferenceThe Attestation conveyance preference. -
displayName
The user.displayName supplied to the authenticator during registration. A human-palatable name for the user account, intended only for display -
enableCredProperties
private boolean enableCredPropertiesEnable the credential properties extenions. For example, to report discoverable credentials i.e. 'passkeys'.
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withUserVerificationRequirement
public CredentialCreationOptionsParameters.IChallengeStage withUserVerificationRequirement(@Nonnull com.yubico.webauthn.data.UserVerificationRequirement uvRequirement) Description copied from interface:CredentialCreationOptionsParameters.IUserVerificationRequirementStageDoes the authentication/registration require user verification.- Specified by:
withUserVerificationRequirementin interfaceCredentialCreationOptionsParameters.IUserVerificationRequirementStage- Parameters:
uvRequirement- the requirement- Returns:
- the next stage
-
withChallenge
public CredentialCreationOptionsParameters.IExcludeCredentialsStage withChallenge(@Nonnull byte[] challengeIn) Description copied from interface:CredentialCreationOptionsParameters.IChallengeStageThe challenge sent to the authenticator in registration ceremonies.- Specified by:
withChallengein interfaceCredentialCreationOptionsParameters.IChallengeStage- Parameters:
challengeIn- the challenge- Returns:
- the next stage
-
withExcludeCredentials
public CredentialCreationOptionsParameters.INameStage withExcludeCredentials(@Nonnull Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> exclude) Description copied from interface:CredentialCreationOptionsParameters.IExcludeCredentialsStageCredentials that have already been registered with the IdP.- Specified by:
withExcludeCredentialsin interfaceCredentialCreationOptionsParameters.IExcludeCredentialsStage- Parameters:
exclude- the credentials to exclude- Returns:
- the next stage
-
withName
Description copied from interface:CredentialCreationOptionsParameters.INameStageThe user.name of the user identity.- Specified by:
withNamein interfaceCredentialCreationOptionsParameters.INameStage- Parameters:
uname- the user.name- Returns:
- the next stage
-
withDisplayName
public CredentialCreationOptionsParameters.IResidentKeyRequirementStage withDisplayName(@Nonnull String dispName) Description copied from interface:CredentialCreationOptionsParameters.IDisplayNameStageThe user.displayName supplied to the authenticator during registration. A human-palatable name for the user account, intended only for display- Specified by:
withDisplayNamein interfaceCredentialCreationOptionsParameters.IDisplayNameStage- Parameters:
dispName- the display name- Returns:
- the next stage
-
withResidentKeyRequirement
public CredentialCreationOptionsParameters.IUserHandleStage withResidentKeyRequirement(@Nonnull com.yubico.webauthn.data.ResidentKeyRequirement residentKeyReq) Description copied from interface:CredentialCreationOptionsParameters.IResidentKeyRequirementStageThe requirement on registering a ResidentKey. Also know as a discoverable credential.- Specified by:
withResidentKeyRequirementin interfaceCredentialCreationOptionsParameters.IResidentKeyRequirementStage- Parameters:
residentKeyReq- the requirement- Returns:
- the next stage
-
withUserId
public CredentialCreationOptionsParameters.IAttestationConveyancePreferenceStage withUserId(@Nonnull byte[] id) Description copied from interface:CredentialCreationOptionsParameters.IUserHandleStageThe user.id supplied to the authenticator during registration. As generated by the IdP.- Specified by:
withUserIdin interfaceCredentialCreationOptionsParameters.IUserHandleStage- Parameters:
id- the user.id- Returns:
- the next stage
-
withAttestationConveyancePreference
public CredentialCreationOptionsParameters.IBuildStage withAttestationConveyancePreference(@Nonnull com.yubico.webauthn.data.AttestationConveyancePreference preference) Description copied from interface:CredentialCreationOptionsParameters.IAttestationConveyancePreferenceStageThe attestation conveyance preference.- Specified by:
withAttestationConveyancePreferencein interfaceCredentialCreationOptionsParameters.IAttestationConveyancePreferenceStage- Parameters:
preference- the preference- Returns:
- the next stage
-
withCredentialPropertiesExt
public CredentialCreationOptionsParameters.IBuildStage withCredentialPropertiesExt(boolean credProps) Description copied from interface:CredentialCreationOptionsParameters.IBuildStageIs the credential properties extension enabled?- Specified by:
withCredentialPropertiesExtin interfaceCredentialCreationOptionsParameters.IBuildStage- Parameters:
credProps- the flag- Returns:
- the next stage
-
withAuthenticatorAttachment
public CredentialCreationOptionsParameters.IBuildStage withAuthenticatorAttachment(@Nullable com.yubico.webauthn.data.AuthenticatorAttachment attachment) Description copied from interface:CredentialCreationOptionsParameters.IBuildStageThe AuthenticatorAttachment requirement.nullwould represent either possibility.- Specified by:
withAuthenticatorAttachmentin interfaceCredentialCreationOptionsParameters.IBuildStage- Parameters:
attachment- the attachment- Returns:
- the next stage
-
build
Description copied from interface:CredentialCreationOptionsParameters.IBuildStageBuild the options.- Specified by:
buildin interfaceCredentialCreationOptionsParameters.IBuildStage- Returns:
- the options
-