AuthenticationException Class
- java.
lang. Object - Exception
- com.
microsoft. aad. adal. AuthenticationException
- com.
public class AuthenticationException
ADAL exception.
Constructor Summary
Constructor | Description | |
---|---|---|
AuthenticationException() |
Default constructor for AuthenticationException. |
|
AuthenticationException(ADALError code) |
Constructs a new AuthenticationException with error code. |
|
AuthenticationException(ADALError code, String details) | ||
AuthenticationException(ADALError code, String details, HttpWebResponse response) | ||
AuthenticationException(ADALError code, String details, HttpWebResponse response, Throwable throwable) | ||
AuthenticationException(ADALError code, String details, Throwable throwable) |
Method Summary
Modifier and Type | Method and Description |
---|---|
ADALError |
getCode()
Gets ADALError code. |
HashMap<String, String> |
getHttpResponseBody()
Gets the response body that may be returned by the service. |
HashMap<String, List<String>> |
getHttpResponseHeaders()
Get the response headers that indicated an error. |
String |
getLocalizedMessage(Context context)
Gets localized ADALError code if provided by context. |
String | getMessage() |
int |
getServiceStatusCode()
Gets the status code returned from http layer. |
Constructor Details
AuthenticationException
public AuthenticationException()
Default constructor for AuthenticationException.
AuthenticationException
public AuthenticationException(ADALError code)
Constructs a new AuthenticationException with error code.
Parameters:
AuthenticationException
public AuthenticationException(ADALError code, String details)
Parameters:
AuthenticationException
public AuthenticationException(ADALError code, String details, HttpWebResponse response)
Parameters:
AuthenticationException
public AuthenticationException(ADALError code, String details, HttpWebResponse response, Throwable throwable)
Parameters:
Throwable
AuthenticationException
public AuthenticationException(ADALError code, String details, Throwable throwable)
Parameters:
Throwable
Method Details
getHttpResponseBody
public HashMap
Gets the response body that may be returned by the service.
Returns:
getHttpResponseHeaders
public HashMap
Get the response headers that indicated an error.
Returns:
getLocalizedMessage
public String getLocalizedMessage(Context context)
Gets localized ADALError code if provided by context.
Parameters:
Context
Returns:
getMessage
public String getMessage()
getServiceStatusCode
public int getServiceStatusCode()
Gets the status code returned from http layer.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for