Class OidcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.io.oidc.OidcException
Thrown for failures during an OpenID Connect / OAuth 2.0 flow driven by
OidcClient. The getError() code mirrors the error field from RFC 6749
for authorization-server responses (e.g. "access_denied", "invalid_grant")
and uses Codename One-specific values for transport or client-side problems
("transport_error", "state_mismatch", "nonce_mismatch", "user_cancelled",
"discovery_failed", "invalid_id_token").- Since:
- 8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthorization server returnederror=access_denied.static final StringThe discovery document could not be fetched or parsed.static final StringToken-endpoint response was missing or malformed.static final StringID token failed structural validation (we do not currently verify the signature -- treat the issuer as a trust anchor and use TLS to the discovery URL).static final Stringnonceclaim on the returned ID token did not match the one we sent.static final Stringstatereturned by the authorization server did not match the one we sent.static final StringGeneric transport / network failure.static final StringUser cancelled the system browser / native sign-in sheet. -
Constructor Summary
ConstructorsConstructorDescriptionOidcException(String error, String message) OidcException(String error, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetError()The short error code (see the constants on this class).Human-readable description supplied by the server or the client.Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Field Details
-
ACCESS_DENIED
Authorization server returnederror=access_denied.- See Also:
-
USER_CANCELLED
User cancelled the system browser / native sign-in sheet.- See Also:
-
STATE_MISMATCH
statereturned by the authorization server did not match the one we sent.- See Also:
-
NONCE_MISMATCH
nonceclaim on the returned ID token did not match the one we sent.- See Also:
-
DISCOVERY_FAILED
The discovery document could not be fetched or parsed.- See Also:
-
INVALID_GRANT
Token-endpoint response was missing or malformed.- See Also:
-
INVALID_ID_TOKEN
ID token failed structural validation (we do not currently verify the signature -- treat the issuer as a trust anchor and use TLS to the discovery URL).- See Also:
-
TRANSPORT_ERROR
-
-
Constructor Details
-
OidcException
-
OidcException
-
-
Method Details
-
getError
The short error code (see the constants on this class). -
getErrorDescription
Human-readable description supplied by the server or the client.
-