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:
  • Method Details

    • createBasicAuthenticationRequiredException

      public static AuthorizationRequiredException createBasicAuthenticationRequiredException(String realm)
    • 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".