Package com.azure.identity
Class AuthenticationRequiredException
- All Implemented Interfaces:
Serializable
The exception thrown to indicate that interactive authentication is required.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationRequiredException(String message, TokenRequestContext request) Initializes a new instance of theAuthenticationRequiredExceptionclass.AuthenticationRequiredException(String message, TokenRequestContext request, Throwable cause) Initializes a new instance of theAuthenticationRequiredExceptionclass. -
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, getValueMethods 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 theAuthenticationRequiredExceptionclass.- 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 theAuthenticationRequiredExceptionclass.- Parameters:
message- The exception message.request- The details of the authentication request.cause- TheThrowablewhich 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.
-