Package io.hanko.sdk.webauthn.protocol
Class AuthenticatorSelectionCriteria
java.lang.Object
io.hanko.sdk.webauthn.protocol.AuthenticatorSelectionCriteria
WebAuthn Relying Parties may use the AuthenticatorSelectionCriteria to specify their
requirements regarding authenticator attributes.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteria(AuthenticatorAttachment authenticatorAttachment, boolean requireResidentKey, UserVerificationRequirement userVerification)Construct AuthenticatorSelectionCriteria. -
Method Summary
Modifier and TypeMethodDescriptionGet theAuthenticatorAttachment.Get theUserVerificationRequirement.booleanGet the resident key requirement.voidsetAuthenticatorAttachment(AuthenticatorAttachment authenticatorAttachment)Set theAuthenticatorAttachment.voidsetRequireResidentKey(boolean requireResidentKey)Get the resident key requirement.voidsetUserVerification(UserVerificationRequirement userVerification)Set theUserVerificationRequirement.
-
Constructor Details
-
AuthenticatorSelectionCriteria
public AuthenticatorSelectionCriteria()Construct AuthenticatorSelectionCriteria. -
AuthenticatorSelectionCriteria
public AuthenticatorSelectionCriteria(AuthenticatorAttachment authenticatorAttachment, boolean requireResidentKey, UserVerificationRequirement userVerification)Construct AuthenticatorSelectionCriteria.- Parameters:
authenticatorAttachment- nullable, theAuthenticatorAttachmentrequireResidentKey- whether a credential should be registered as a resident key, defaults tofalseuserVerification- nullable, theUserVerificationRequirement
-
-
Method Details
-
getAuthenticatorAttachment
Get theAuthenticatorAttachment.- Returns:
- the
AuthenticatorAttachment
-
setAuthenticatorAttachment
Set theAuthenticatorAttachment.- Parameters:
authenticatorAttachment- theAuthenticatorAttachment
-
isRequireResidentKey
public boolean isRequireResidentKey()Get the resident key requirement.- Returns:
true, if a resident key should be created using these selection criteria,falseotherwise
-
setRequireResidentKey
public void setRequireResidentKey(boolean requireResidentKey)Get the resident key requirement.- Parameters:
requireResidentKey- the resident key requirement set totrue, if a resident key should be created using these selection criteria,falseotherwise
-
getUserVerification
Get theUserVerificationRequirement.- Returns:
- the
UserVerificationRequirement
-
setUserVerification
Set theUserVerificationRequirement.- Parameters:
userVerification- theUserVerificationRequirement
-