com.meterware.httpunit

Class AuthorizationRequiredException

public class AuthorizationRequiredException extends RuntimeException

This exception is thrown when an unauthorized request is made for a page that requires authentication.
Constructor Summary
protected AuthorizationRequiredException(String scheme, String params)
Method Summary
StringgetAuthenticationParameter(String parameterName)
Returns the named authentication parameter.
StringgetAuthenticationScheme()
Returns the name of the authentication scheme.
StringgetMessage()

Constructor Detail

AuthorizationRequiredException

protected AuthorizationRequiredException(String scheme, String params)

Method Detail

getAuthenticationParameter

public String getAuthenticationParameter(String parameterName)
Returns the named authentication parameter. For Basic authentication, the only parameter is "realm".

getAuthenticationScheme

public String getAuthenticationScheme()
Returns the name of the authentication scheme.

getMessage

public String getMessage()