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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createBasicAuthenticationRequiredException
public static AuthorizationRequiredException createBasicAuthenticationRequiredException(String realm) -
getMessage
- Overrides:
getMessagein classThrowable
-
getAuthenticationScheme
Returns the name of the authentication scheme. -
getAuthenticationParameter
-