Class WebAuthnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.backend.security.AuthenticationException
com.codename1.backend.security.webauthn.WebAuthnException
A passkey ceremony that was refused, with which check refused it.
getReason() is one of the constants here: a short name a test, a log line
or an alert can match. The message says the same for a person, and may name
what was received -- an origin, an attestation format -- so it is for the
server's own log and is not sent to whoever made the request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe user the credential belongs to cannot sign in here.static final StringThe attestation statement does not verify.static final StringThe backup flags contradict each other, or what was recorded when the credential was registered.static final StringThe ceremony was started too long ago.static final StringThe client signed another challenge than the one this session was given.static final StringThe signature counter did not advance: the credential may have been copied.static final StringA credential with this id is registered already, to this user or another.static final StringThe credential is not one the ceremony allowed.static final StringThe ceremony ran inside a frame of another origin, which is not allowed.static final StringThe credential's key is not a key of the algorithm it names.static final StringThe request is not the JSON a ceremony takes, or a field of it is missing or is not what it should be.static final StringThe authenticator data is not what the specification lays out.static final StringA CBOR value could not be read: truncated, nested too deep, too large, or of a kind the ceremonies have no use for.static final StringNo ceremony was waiting in this session, or it had been used already.static final StringThe ceremony ran on an origin the relying party does not allow.static final StringThe authenticator answered for another relying party.static final StringThe signature is not the credential's signature of this ceremony.static final StringNo credential with this id is registered.static final StringThe credential's key is of an algorithm this server does not verify.static final StringThe attestation is in a format this server does not verify.static final StringThe credential belongs to another user than the one the ceremony is for, or the response names no user where it must.static final StringThe authenticator did not see the user: the user-present flag is clear.static final StringThe ceremony required the user to be verified, and the flag is clear.static final StringThe client data is for the other ceremony: a registration where a sign-in was expected, or the reverse. -
Constructor Summary
ConstructorsConstructorDescriptionWebAuthnException(String reason, String message) WebAuthnException(String reason, String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MALFORMED
The request is not the JSON a ceremony takes, or a field of it is missing or is not what it should be.- See Also:
-
MALFORMED_CBOR
A CBOR value could not be read: truncated, nested too deep, too large, or of a kind the ceremonies have no use for.- See Also:
-
NO_CHALLENGE
No ceremony was waiting in this session, or it had been used already.- See Also:
-
CHALLENGE_EXPIRED
-
CHALLENGE_MISMATCH
The client signed another challenge than the one this session was given.- See Also:
-
WRONG_TYPE
The client data is for the other ceremony: a registration where a sign-in was expected, or the reverse.- See Also:
-
ORIGIN_MISMATCH
The ceremony ran on an origin the relying party does not allow.- See Also:
-
CROSS_ORIGIN
The ceremony ran inside a frame of another origin, which is not allowed.- See Also:
-
RP_ID_MISMATCH
The authenticator answered for another relying party.- See Also:
-
USER_NOT_PRESENT
The authenticator did not see the user: the user-present flag is clear.- See Also:
-
USER_NOT_VERIFIED
The ceremony required the user to be verified, and the flag is clear.- See Also:
-
MALFORMED_AUTHENTICATOR_DATA
The authenticator data is not what the specification lays out.- See Also:
-
UNSUPPORTED_ALGORITHM
The credential's key is of an algorithm this server does not verify.- See Also:
-
INVALID_KEY
The credential's key is not a key of the algorithm it names.- See Also:
-
UNSUPPORTED_ATTESTATION
The attestation is in a format this server does not verify.- See Also:
-
ATTESTATION_INVALID
-
CREDENTIAL_EXISTS
A credential with this id is registered already, to this user or another.- See Also:
-
UNKNOWN_CREDENTIAL
-
CREDENTIAL_NOT_ALLOWED
The credential is not one the ceremony allowed.- See Also:
-
USER_MISMATCH
The credential belongs to another user than the one the ceremony is for, or the response names no user where it must.- See Also:
-
SIGNATURE_INVALID
The signature is not the credential's signature of this ceremony.- See Also:
-
COUNTER_REGRESSION
The signature counter did not advance: the credential may have been copied.- See Also:
-
BACKUP_STATE_INVALID
The backup flags contradict each other, or what was recorded when the credential was registered.- See Also:
-
ACCOUNT_UNAVAILABLE
The user the credential belongs to cannot sign in here.- See Also:
-
-
Constructor Details
-
WebAuthnException
-
WebAuthnException
-
-
Method Details
-
getReason
Which check refused the ceremony: one of the constants of this class.
-