Package com.yubico.webauthn.data
Class AuthenticatorSelectionCriteria
- java.lang.Object
-
- com.yubico.webauthn.data.AuthenticatorSelectionCriteria
-
public final class AuthenticatorSelectionCriteria extends java.lang.ObjectThis class may be used to specify requirements regarding authenticator attributes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuilderbuilder()booleanequals(java.lang.Object o)java.util.Optional<AuthenticatorAttachment>getAuthenticatorAttachment()If present, eligible authenticators are filtered to only authenticators attached with the specified §5.4.5 Authenticator Attachment Enumeration (enum AuthenticatorAttachment).java.util.Optional<ResidentKeyRequirement>getResidentKey()Specifies the extent to which the Relying Party desires to create a client-side discoverable credential.java.util.Optional<UserVerificationRequirement>getUserVerification()Describes the Relying Party's requirements regarding user verification for thenavigator.credentials.create()operation.inthashCode()AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
getAuthenticatorAttachment
public java.util.Optional<AuthenticatorAttachment> getAuthenticatorAttachment()
If present, eligible authenticators are filtered to only authenticators attached with the specified §5.4.5 Authenticator Attachment Enumeration (enum AuthenticatorAttachment).
-
getResidentKey
public java.util.Optional<ResidentKeyRequirement> getResidentKey()
Specifies the extent to which the Relying Party desires to create a client-side discoverable credential. For historical reasons the naming retains the deprecated “resident” terminology.By default, this is not set. When not set, the default in the browser is
ResidentKeyRequirement.DISCOURAGED.When this is set,
PublicKeyCredentialCreationOptions.toCredentialsCreateJson()will also emit arequireResidentKeymember for backwards compatibility with WebAuthn Level 1. It will be set totrueif this is set toREQUIREDandfalseif this is set to anything else. When this is not set, arequireResidentKeymember will not be emitted.
-
getUserVerification
public java.util.Optional<UserVerificationRequirement> getUserVerification()
Describes the Relying Party's requirements regarding user verification for thenavigator.credentials.create()operation. Eligible authenticators are filtered to only those capable of satisfying this requirement.By default, this is not set. When not set, the default in the browser is
UserVerificationRequirement.PREFERRED.
-
builder
public static AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuilder builder()
-
toBuilder
public AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuilder toBuilder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-