Package com.meterware.httpunit
Class AuthorizationRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.meterware.httpunit.AuthorizationRequiredException
- All Implemented Interfaces:
Serializable
This exception is thrown when an unauthorized request is made for a page that requires authentication.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAuthenticationParameter
(String parameterName) Returns the named authentication parameter.Returns the name of the authentication scheme.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createBasicAuthenticationRequiredException
public static AuthorizationRequiredException createBasicAuthenticationRequiredException(String realm) -
getMessage
- Overrides:
getMessage
in classThrowable
-
getAuthenticationScheme
Returns the name of the authentication scheme. -
getAuthenticationParameter
Returns the named authentication parameter. For Basic authentication, the only parameter is "realm".
-