Delen via


AuthenticationErrorCode Class

  • java.lang.Object
    • com.microsoft.aad.msal4j.AuthenticationErrorCode

public class AuthenticationErrorCode

Class containing error codes returned by the service or generated by the client

Field Summary

Modifier and Type Field and Description
static final java.lang.String AUTHORIZATION_PENDING

In the context of device code user has not yet authenticated via browser.

static final java.lang.String CACHE_MISS

Not found in the cache

static final java.lang.String CODE_EXPIRED

In the context of device code, this error happens when the device code has expired before the user signed-in on another device (this is usually after 15 min).

static final java.lang.String DESKTOP_BROWSER_NOT_SUPPORTED

MSAL was unable to open the user-default browser.

static final java.lang.String HTTP_TIMEOUT

Indicates that a timeout occurred during an HTTP call.

static final java.lang.String INVALID_AUTHORIZATION_RESULT

Authorization result response is invalid.

static final java.lang.String INVALID_GRANT

Standard Oauth2 protocol error code.

static final java.lang.String INVALID_INSTANCE_DISCOVERY_METADATA

Not able to parse instance discovery metadata.

static final java.lang.String INVALID_JSON

A JSON processing failure, indicating the JSON provided to MSAL is of invalid format.

static final java.lang.String INVALID_JWT

A JWT parsing failure, indicating the JWT provided to MSAL is of invalid format.

static final java.lang.String INVALID_REDIRECT_URI

Redirect URI provided to MSAL is of invalid format.

static final java.lang.String LOOPBACK_REDIRECT_URI

The current redirect URI is not a loopback URL.

static final java.lang.String MANAGED_IDENTITY_REQUEST_FAILED

Indicates that a request to managed identity endpoint failed, see error message for detailed reason and correlation id.

static final java.lang.String MISSING_BROKER

Indicates that a Broker implementation is missing from the device, such as when an app developer does not include one of our broker packages as a dependency in their project, or otherwise cannot be accessed by MSAL Java

static final java.lang.String MSALJAVA_BROKERS_ERROR

Indicates an error related to the MSAL Java Brokers package

static final java.lang.String MSALRUNTIME_INTEROP_ERROR

Indicates an error from the MSAL Java/MSALRuntime interop layer used by the Java Brokers package, and will generally just be forwarding an error message from the interop layer or MSALRuntime itself

static final java.lang.String PASSWORD_REQUIRED_FOR_MANAGED_USER

Password is required for managed user.

static final java.lang.String THROTTLED_REQUEST

Request was throttled according to instructions from STS.

static final java.lang.String UNABLE_TO_START_HTTP_LISTENER

Unable to start Http listener to the specified port.

static final java.lang.String UNKNOWN

Unknown error occurred

static final java.lang.String USER_REALM_DISCOVERY_FAILED

User realm discovery failed

static final java.lang.String WSTRUST_ENDPOINT_NOT_FOUND_IN_METADATA_DOCUMENT

WS-Trust Endpoint not found in Metadata document

static final java.lang.String WSTRUST_INVALID_RESPONSE

WS-Trust endpoint response did not contain the required fields

static final java.lang.String WSTRUST_SERVICE_ERROR

WS-Trust request resulted in service error

Constructor Summary

Constructor Description
AuthenticationErrorCode()

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

AUTHORIZATION_PENDING

public static final String AUTHORIZATION_PENDING

In the context of device code user has not yet authenticated via browser. For more details, see https://aka.ms/msal4j-device-code

CACHE_MISS

public static final String CACHE_MISS

Not found in the cache

CODE_EXPIRED

public static final String CODE_EXPIRED

In the context of device code, this error happens when the device code has expired before the user signed-in on another device (this is usually after 15 min). For more details, see https://aka.ms/msal4j-device-code

DESKTOP_BROWSER_NOT_SUPPORTED

public static final String DESKTOP_BROWSER_NOT_SUPPORTED

MSAL was unable to open the user-default browser. This is either because the current platform does not support java.awt.Desktop or java.awt.Desktop.Action#BROWSE. Interactive requests require that the client have a system default browser. For more details, see https://aka.ms/msal4j-interactive-request

HTTP_TIMEOUT

public static final String HTTP_TIMEOUT

Indicates that a timeout occurred during an HTTP call. If this was thrown in relation to a connection timeout error, there is likely a network issue preventing the library from reaching a service, such as being blocked by a firewall. If this was thrown in relation to a read timeout error, there is likely an issue in the service itself causing a slow response, and this may be resolvable by increasing timeouts. For more details, see https://aka.ms/msal4j-http-client

INVALID_AUTHORIZATION_RESULT

public static final String INVALID_AUTHORIZATION_RESULT

Authorization result response is invalid. Authorization result must contain authorization code and state.

INVALID_GRANT

public static final String INVALID_GRANT

Standard Oauth2 protocol error code. It indicates that the application needs to expose the UI to the user so that user does an interactive action in order to get a new token.

INVALID_INSTANCE_DISCOVERY_METADATA

public static final String INVALID_INSTANCE_DISCOVERY_METADATA

Not able to parse instance discovery metadata. Ensure data is in valid JSON format, and that it contains relevant fields. For more information, see https://aka.ms/msal4j-instance-discovery

INVALID_JSON

public static final String INVALID_JSON

A JSON processing failure, indicating the JSON provided to MSAL is of invalid format.

INVALID_JWT

public static final String INVALID_JWT

A JWT parsing failure, indicating the JWT provided to MSAL is of invalid format.

INVALID_REDIRECT_URI

public static final String INVALID_REDIRECT_URI

Redirect URI provided to MSAL is of invalid format. Redirect URL must be a loopback URL. For more details, see https://aka.ms/msal4j-interactive-request

LOOPBACK_REDIRECT_URI

public static final String LOOPBACK_REDIRECT_URI

The current redirect URI is not a loopback URL. To use the OS browser, a loopback URL must be configured both during app registration as well as when initializing the InteractiveRequestParameters object. For more details, see https://aka.ms/msal4j-interactive-request

MANAGED_IDENTITY_REQUEST_FAILED

public static final String MANAGED_IDENTITY_REQUEST_FAILED

Indicates that a request to managed identity endpoint failed, see error message for detailed reason and correlation id. For more information on managed identity see https://aka.ms/msal4j-managed-identity.

MISSING_BROKER

public static final String MISSING_BROKER

Indicates that a Broker implementation is missing from the device, such as when an app developer does not include one of our broker packages as a dependency in their project, or otherwise cannot be accessed by MSAL Java

MSALJAVA_BROKERS_ERROR

public static final String MSALJAVA_BROKERS_ERROR

Indicates an error related to the MSAL Java Brokers package

MSALRUNTIME_INTEROP_ERROR

public static final String MSALRUNTIME_INTEROP_ERROR

Indicates an error from the MSAL Java/MSALRuntime interop layer used by the Java Brokers package, and will generally just be forwarding an error message from the interop layer or MSALRuntime itself

PASSWORD_REQUIRED_FOR_MANAGED_USER

public static final String PASSWORD_REQUIRED_FOR_MANAGED_USER

Password is required for managed user. Will typically happen when trying to do integrated windows authentication for managed users. For more information, see https://aka.ms/msal4j-iwa

THROTTLED_REQUEST

public static final String THROTTLED_REQUEST

Request was throttled according to instructions from STS.

UNABLE_TO_START_HTTP_LISTENER

public static final String UNABLE_TO_START_HTTP_LISTENER

Unable to start Http listener to the specified port. This might be because the port is busy.

UNKNOWN

public static final String UNKNOWN

Unknown error occurred

USER_REALM_DISCOVERY_FAILED

public static final String USER_REALM_DISCOVERY_FAILED

User realm discovery failed

WSTRUST_ENDPOINT_NOT_FOUND_IN_METADATA_DOCUMENT

public static final String WSTRUST_ENDPOINT_NOT_FOUND_IN_METADATA_DOCUMENT

WS-Trust Endpoint not found in Metadata document

WSTRUST_INVALID_RESPONSE

public static final String WSTRUST_INVALID_RESPONSE

WS-Trust endpoint response did not contain the required fields

WSTRUST_SERVICE_ERROR

public static final String WSTRUST_SERVICE_ERROR

WS-Trust request resulted in service error

Constructor Details

AuthenticationErrorCode

public AuthenticationErrorCode()

Applies to