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
- public class AuthorizationRequiredException
- extends RuntimeException
This exception is thrown when an unauthorized request is made for a page that requires authentication.
- See Also:
- Serialized Form
AuthorizationRequiredException
protected AuthorizationRequiredException(String scheme,
String params)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getAuthenticationScheme
public String getAuthenticationScheme()
- Returns the name of the authentication scheme.
getAuthenticationParameter
public String getAuthenticationParameter(String parameterName)
- Returns the named authentication parameter. For Basic authentication, the only parameter is "realm".