public class MsalServiceException extends MsalException
| Constructor and Description |
|---|
MsalServiceException(com.microsoft.aad.msal4j.AadInstanceDiscoveryResponse discoveryResponse)
Initializes a new instance of the exception class
|
MsalServiceException(com.microsoft.aad.msal4j.ErrorResponse errorResponse,
Map<String,List<String>> httpHeaders)
Initializes a new instance of the exception class
|
MsalServiceException(String message,
String error)
Initializes a new instance of the exception class with a specified error message
|
MsalServiceException(String message,
String error,
com.microsoft.aad.msal4j.ManagedIdentitySourceType managedIdentitySource)
Initializes a new instance of the exception class, with any extra properties for a Managed Identity error
|
| Modifier and Type | Method and Description |
|---|---|
String |
claims()
Claims included in the claims challenge
|
String |
correlationId()
An ID that can be used to piece up a single authentication flow.
|
Map<String,List<String>> |
headers()
Contains the http headers from the server response that indicated an error.
|
String |
managedIdentitySource() |
Integer |
statusCode()
Status code returned from http layer
|
String |
statusMessage()
Status message returned from the http layer
|
errorCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MsalServiceException(String message, String error)
message - the error message that explains the reason for the exceptionerror - a simplified error code from AuthenticationErrorCode and used for references in documentationpublic MsalServiceException(com.microsoft.aad.msal4j.ErrorResponse errorResponse,
Map<String,List<String>> httpHeaders)
errorResponse - response object contain information about error returned by serverhttpHeaders - http headers from the server responsepublic MsalServiceException(String message, String error, com.microsoft.aad.msal4j.ManagedIdentitySourceType managedIdentitySource)
message - the error message that explains the reason for the exceptionmanagedIdentitySource - the Managed Identity servicepublic MsalServiceException(com.microsoft.aad.msal4j.AadInstanceDiscoveryResponse discoveryResponse)
discoveryResponse - response object from instance discovery network callpublic Integer statusCode()
public String statusMessage()
public String correlationId()
public String claims()
public Map<String,List<String>> headers()
public String managedIdentitySource()
Copyright © 2013–2024. All rights reserved.