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:
java.io.Serializable
public class AuthorizationRequiredException extends java.lang.RuntimeException
This exception is thrown when an unauthorized request is made for a page that requires authentication.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationRequiredException
createBasicAuthenticationRequiredException(java.lang.String realm)
java.lang.String
getAuthenticationParameter(java.lang.String parameterName)
Returns the named authentication parameter.java.lang.String
getAuthenticationScheme()
Returns the name of the authentication scheme.java.lang.String
getMessage()
-
-
-
Method Detail
-
createBasicAuthenticationRequiredException
public static AuthorizationRequiredException createBasicAuthenticationRequiredException(java.lang.String realm)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getAuthenticationScheme
public java.lang.String getAuthenticationScheme()
Returns the name of the authentication scheme.
-
getAuthenticationParameter
public java.lang.String getAuthenticationParameter(java.lang.String parameterName)
Returns the named authentication parameter. For Basic authentication, the only parameter is "realm".
-
-