Class PublicKeyCredentialHint
For example, the SECURITY_KEY hint may be used to ask the
 client to emphasize the option of using an external security key, or the CLIENT_DEVICE hint may be used to ask the client to emphasize the option
 of using a built-in passkey provider.
 
These hints are not requirements, and do not bind the user-agent, but may guide it in providing the best experience by using contextual information about the request.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PublicKeyCredentialHintIndicates that the application believes that users will satisfy this request with an authenticator built into the client device.static final PublicKeyCredentialHintIndicates that the application believes that users will satisfy this request with general-purpose authenticators such as smartphones.static final PublicKeyCredentialHintIndicates that the application believes that users will satisfy this request with a physical security key. - 
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull StringgetValue()inthashCode()static PublicKeyCredentialHinttoString()static PublicKeyCredentialHintstatic PublicKeyCredentialHint[]values() 
- 
Field Details
- 
SECURITY_KEY
Indicates that the application believes that users will satisfy this request with a physical security key.For example, an enterprise application may set this hint if they have issued security keys to their employees and will only accept those authenticators for registration and authentication. In that case, the application should probably also set
attestationTrustSourceand setallowUntrustedAttestationtofalse. See also thewebauthn-server-attestationmodule.For compatibility with older user agents, when this hint is used in
StartRegistrationOptions, theparameter SHOULD be set toauthenticatorSelection.authenticatorAttachmentAuthenticatorAttachment.CROSS_PLATFORM.- See Also:
 - 
StartRegistrationOptions.StartRegistrationOptionsBuilder.hints(PublicKeyCredentialHint...)StartAssertionOptions.StartAssertionOptionsBuilder.hints(PublicKeyCredentialHint...)- 
     
security-keyin §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints) - §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints)
 
 
 - 
CLIENT_DEVICE
Indicates that the application believes that users will satisfy this request with an authenticator built into the client device.For compatibility with older user agents, when this hint is used in
StartRegistrationOptions, theparameter SHOULD be set toauthenticatorSelection.authenticatorAttachmentAuthenticatorAttachment.PLATFORM.- See Also:
 - 
StartRegistrationOptions.StartRegistrationOptionsBuilder.hints(PublicKeyCredentialHint...)StartAssertionOptions.StartAssertionOptionsBuilder.hints(PublicKeyCredentialHint...)- 
     
client-devicein §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints) - §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints)
 
 
 - 
HYBRID
Indicates that the application believes that users will satisfy this request with general-purpose authenticators such as smartphones. For example, a consumer application may believe that only a small fraction of their customers possesses dedicated security keys. This option also implies that the local platform authenticator should not be promoted in the UI.For compatibility with older user agents, when this hint is used in
StartRegistrationOptions, theparameter SHOULD be set toauthenticatorSelection.authenticatorAttachmentAuthenticatorAttachment.CROSS_PLATFORM.- See Also:
 - 
StartRegistrationOptions.StartRegistrationOptionsBuilder.hints(PublicKeyCredentialHint...)StartAssertionOptions.StartAssertionOptionsBuilder.hints(PublicKeyCredentialHint...)- 
     
hybridin §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints) - §5.8.7. User-agent Hints Enumeration (enum PublicKeyCredentialHints)
 
 
 
 - 
 - 
Method Details
- 
values
- Returns:
 - An array containing all predefined values of 
PublicKeyCredentialHintknown by this implementation. 
 - 
of
- Returns:
 - If 
valueis the same as that of any ofSECURITY_KEY,CLIENT_DEVICEorHYBRID, returns that constant instance. Otherwise returns a new instance containingvalue. - See Also:
 
 - 
valueOf
- Returns:
 - If 
nameequals"SECURITY_KEY","CLIENT_DEVICE"or"HYBRID", returns the constant by that name. - Throws:
 IllegalArgumentException- ifnameis anything else.- See Also:
 
 - 
getValue
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -