Class CredentialCreationOptionsParameters
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.authn.BaseOptionsParameters
net.shibboleth.idp.plugin.authn.webauthn.admin.CredentialCreationOptionsParameters
@ThreadSafe
@Immutable
public final class CredentialCreationOptionsParameters
extends BaseOptionsParameters
A class to hold the parameters required to build a PublicKeyCredentialRequestOptions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface.static interfaceStage interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.yubico.webauthn.data.AttestationConveyancePreferenceThe attestation conveyance preference.private final com.yubico.webauthn.data.AuthenticatorAttachmentThe authenticator attachment requirement.private final StringThe user.displayName supplied to the authenticator during registration.private final booleanEnable the credential properties extensions.private final Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor>Credentials that have already been registered with the IdP.private final StringThe user.name of the user identity.private final com.yubico.webauthn.data.ResidentKeyRequirementThe requirement on registering a ResidentKey.private final byte[]The user.id supplied to the authenticator during registration. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Get a new builder.final com.yubico.webauthn.data.AttestationConveyancePreferenceGet the attestation conveyance preference.final com.yubico.webauthn.data.AuthenticatorAttachmentGet the authenticator attachment requirement.final StringGet the user.displayName.final Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor>Get the set of credentials that have already been registered with the IdP.final StringgetName()Get the WebAuthn user.name.final com.yubico.webauthn.data.ResidentKeyRequirementGet the resident key requirement.final byte[]Get the user.id.final booleanIs the credential properties extension enabled?Methods inherited from class net.shibboleth.idp.plugin.authn.webauthn.authn.BaseOptionsParameters
getChallenge, getUserVerificationRequirement
-
Field Details
-
excludeCredentials
@Nonnull @NonnullElements private final Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> excludeCredentialsCredentials that have already been registered with the IdP. The authenticator should use these to avoid creating duplicate credentials during registration. -
name
The user.name of the user identity. -
displayName
The user.displayName supplied to the authenticator during registration. A human-palatable name for the user account, intended only for display -
authenticatorAttachment
@Nullable private final com.yubico.webauthn.data.AuthenticatorAttachment authenticatorAttachmentThe authenticator attachment requirement.nullwould represent either possibility. -
residentKeyRequirement
@Nonnull private final com.yubico.webauthn.data.ResidentKeyRequirement residentKeyRequirementThe requirement on registering a ResidentKey. Also know as a discoverable credential. -
userId
@Nonnull private final byte[] userIdThe user.id supplied to the authenticator during registration. As generated by the IdP. -
attestationConveyancePreference
@Nonnull private final com.yubico.webauthn.data.AttestationConveyancePreference attestationConveyancePreferenceThe attestation conveyance preference. -
enableCredProperties
private final boolean enableCredPropertiesEnable the credential properties extensions. For example, to report discoverable credentials i.e. 'passkeys'.
-
-
Constructor Details
-
CredentialCreationOptionsParameters
Constructor.- Parameters:
builder- the builder to extract parameters from
-
-
Method Details
-
getExcludeCredentials
@Nonnull @NonnullElements public final Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> getExcludeCredentials()Get the set of credentials that have already been registered with the IdP.- Returns:
- the excludeCredentials.
-
getName
Get the WebAuthn user.name.- Returns:
- the name.
-
getAuthenticatorAttachment
@Nullable public final com.yubico.webauthn.data.AuthenticatorAttachment getAuthenticatorAttachment()Get the authenticator attachment requirement.- Returns:
- the authenticatorAttachment.
-
getResidentKeyRequirement
@Nonnull public final com.yubico.webauthn.data.ResidentKeyRequirement getResidentKeyRequirement()Get the resident key requirement.- Returns:
- the residentKeyRequirement.
-
getUserId
@Nonnull public final byte[] getUserId()Get the user.id.- Returns:
- the userHandle
-
getDisplayName
Get the user.displayName.- Returns:
- the user's display name.
-
isEnableCredProperties
public final boolean isEnableCredProperties()Is the credential properties extension enabled?- Returns:
- is credential properties extension enabled
-
getAttestationConveyancePreference
public final com.yubico.webauthn.data.AttestationConveyancePreference getAttestationConveyancePreference()Get the attestation conveyance preference.- Returns:
- the attestation conveyance preference.
-
builder
Get a new builder.- Returns:
- the builder
-