Package com.azure.identity
Class AuthenticationRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.core.exception.AzureException
-
- com.azure.core.exception.HttpResponseException
-
- com.azure.core.exception.ClientAuthenticationException
-
- com.azure.identity.CredentialUnavailableException
-
- com.azure.identity.AuthenticationRequiredException
-
- All Implemented Interfaces:
Serializable
public final class AuthenticationRequiredException extends CredentialUnavailableException
The exception thrown to indicate that interactive authentication is required.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationRequiredException(String message, com.azure.core.credential.TokenRequestContext request)
Initializes a new instance of theAuthenticationRequiredException
class.AuthenticationRequiredException(String message, com.azure.core.credential.TokenRequestContext request, Throwable cause)
Initializes a new instance of theAuthenticationRequiredException
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.credential.TokenRequestContext
getTokenRequestContext()
Get the details of the authentication request which resulted in the authentication failure.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthenticationRequiredException
public AuthenticationRequiredException(String message, com.azure.core.credential.TokenRequestContext request)
Initializes a new instance of theAuthenticationRequiredException
class.- Parameters:
message
- The exception message.request
- The details of the authentication request.
-
AuthenticationRequiredException
public AuthenticationRequiredException(String message, com.azure.core.credential.TokenRequestContext request, Throwable cause)
Initializes a new instance of theAuthenticationRequiredException
class.- Parameters:
message
- The exception message.request
- The details of the authentication request.cause
- TheThrowable
which caused the creation of this exception.
-
-