Package com.azure.identity
Class AuthenticationRequiredException
- All Implemented Interfaces:
Serializable
The exception thrown to indicate that interactive authentication is required.
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationRequiredException
(String message, TokenRequestContext request) Initializes a new instance of theAuthenticationRequiredException
class.AuthenticationRequiredException
(String message, TokenRequestContext request, Throwable cause) Initializes a new instance of theAuthenticationRequiredException
class. -
Method Summary
Modifier and TypeMethodDescriptionGet the details of the authentication request which resulted in the authentication failure.Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse, getValue
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationRequiredException
Initializes a new instance of theAuthenticationRequiredException
class.- Parameters:
message
- The exception message.request
- The details of the authentication request.
-
AuthenticationRequiredException
public AuthenticationRequiredException(String message, 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.
-
-
Method Details
-
getTokenRequestContext
Get the details of the authentication request which resulted in the authentication failure.- Returns:
- the token request context.
-