public class NopAuthenticator extends java.lang.Object implements Authenticator
This results in it being ignored by CredentialsContainer instances.
| Constructor and Description |
|---|
NopAuthenticator(com.yubico.webauthn.data.AuthenticatorAttachment attachment)
Creates a
NopAuthenticator with the given attachment. |
| Modifier and Type | Method and Description |
|---|---|
AuthenticatorAssertionData |
getAssertion(java.lang.String rpId,
byte[] hash,
java.util.List<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> allowedCredentialDescriptorList,
boolean requireUserVerification,
byte[] extensions)
Implementation that always throws an
UnsupportedOperationException. |
com.yubico.webauthn.data.AuthenticatorAttachment |
getAttachment()
Returns this authenticator's attachment.
|
com.upokecenter.cbor.CBORObject |
makeCredential(byte[] hash,
com.yubico.webauthn.data.RelyingPartyIdentity rpEntity,
com.yubico.webauthn.data.UserIdentity userEntity,
boolean requireResidentKey,
boolean requireUserVerification,
java.util.List<com.yubico.webauthn.data.PublicKeyCredentialParameters> credTypesAndPubKeyAlgs,
java.util.Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> excludeCredentials,
boolean enterpriseAttestationPossible,
byte[] extensions)
Implementation that always throws an
UnsupportedOperationException. |
boolean |
supportsClientSideDiscoverablePublicKeyCredentialSources()
Returns whether this authenticator supports the creation of client-side discoverable credentials,
also known as resident keys.
|
boolean |
supportsUserVerification()
Returns whether this authenticator can perform user verification.
|
public NopAuthenticator(com.yubico.webauthn.data.AuthenticatorAttachment attachment)
NopAuthenticator with the given attachment.attachment - the attachment of this authenticator (platform or cross-platform)public com.upokecenter.cbor.CBORObject makeCredential(byte[] hash,
com.yubico.webauthn.data.RelyingPartyIdentity rpEntity,
com.yubico.webauthn.data.UserIdentity userEntity,
boolean requireResidentKey,
boolean requireUserVerification,
java.util.List<com.yubico.webauthn.data.PublicKeyCredentialParameters> credTypesAndPubKeyAlgs,
java.util.Set<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> excludeCredentials,
boolean enterpriseAttestationPossible,
byte[] extensions)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException,
java.lang.IllegalStateException
UnsupportedOperationException.
Method that will be called by a client platform to create a new credential on this authenticator.makeCredential in interface Authenticatorhash - The hash of the serialized client data, provided by the client.rpEntity - The Relying Party entityuserEntity - The user account's entity, containing the user handle given by the Relying Party.requireResidentKey - The effective resident key requirement for credential creation, a Boolean value determined by the client.requireUserVerification - The effective user verification requirement for credential creation, a Boolean value determined by the client.credTypesAndPubKeyAlgs - A sequence of credential types and algorithms requested by the Relying Party. This sequence is ordered from most preferred to least preferred.
The authenticator makes a best-effort to create the most preferred credential that it can.excludeCredentials - A nullable list of PublicKeyCredentialDescriptor objects provided by the Relying Party with the intention that,
if any of these are known to the authenticator, it SHOULD NOT create a new credential.
excludeCredentials contains a list of known credentials.enterpriseAttestationPossible - A Boolean value that indicates that individually-identifying attestation MAY be returned by the authenticator.extensions - A CBOR map from extension identifiers to their authenticator extension inputs, created by the client based on the extensions requested by the Relying Party, if any.java.lang.IllegalArgumentException - If the parameters are malformed in any way.java.lang.UnsupportedOperationException - If some requirement was requested that this authenticator does not support.java.lang.IllegalStateException - If the current state of this authenticator prevents it from fulfilling the request.public AuthenticatorAssertionData getAssertion(java.lang.String rpId, byte[] hash, java.util.List<com.yubico.webauthn.data.PublicKeyCredentialDescriptor> allowedCredentialDescriptorList, boolean requireUserVerification, byte[] extensions) throws java.lang.IllegalArgumentException, java.util.NoSuchElementException
UnsupportedOperationException.
Method that will be called by a client platform to create an assertion for an existing credential.getAssertion in interface AuthenticatorrpId - The caller’s RP ID, as determined by the user agent and the client.hash - The hash of the serialized client data, provided by the client.allowedCredentialDescriptorList - A nullable list of PublicKeyCredentialDescriptors describing credentials acceptable to the Relying Party (possibly filtered by the client), if any.requireUserVerification - The effective user verification requirement for assertion, a Boolean value provided by the client.extensions - A CBOR map from extension identifiers to their authenticator extension inputs, created by the client based on the extensions requested by the Relying Party, if any.java.lang.IllegalArgumentException - If the parameters are malformed in any way.java.util.NoSuchElementException - If this authenticator cannot find any matching credential.public com.yubico.webauthn.data.AuthenticatorAttachment getAttachment()
AuthenticatorgetAttachment in interface Authenticatorpublic boolean supportsClientSideDiscoverablePublicKeyCredentialSources()
AuthenticatorsupportsClientSideDiscoverablePublicKeyCredentialSources in interface Authenticatorpublic boolean supportsUserVerification()
AuthenticatorsupportsUserVerification in interface Authenticator