Class Authenticator.Failure

java.lang.Object
com.sun.net.httpserver.Authenticator.Result
com.sun.net.httpserver.Authenticator.Failure
Enclosing class:
Authenticator

public static class Authenticator.Failure extends Authenticator.Result
Indicates an authentication failure. The authentication attempt has completed.
Since:
1.6
  • Constructor Details Link icon

    • Failure Link icon

      public Failure(int responseCode)
      Creates a Failure instance with given response code.
      Parameters:
      responseCode - the response code to associate with this Failure instance
  • Method Details Link icon

    • getResponseCode Link icon

      public int getResponseCode()
      Returns the response code to send to the client.
      Returns:
      the response code associated with this Failure instance