java.lang.Object
com.sun.net.httpserver.Authenticator.Result
com.sun.net.httpserver.Authenticator.Failure
- Enclosing class:
- Authenticator
Indicates an authentication failure. The authentication
attempt has completed.
-
Constructor Summary
ConstructorDescriptionFailure
(int responseCode) Creates aFailure
instance with given response code. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the response code to send to the client.
-
Constructor Details
-
Failure
public Failure(int responseCode) Creates aFailure
instance with given response code.- Parameters:
responseCode
- the response code to associate with thisFailure
instance
-
-
Method Details
-
getResponseCode
public int getResponseCode()Returns the response code to send to the client.- Returns:
- the response code associated with this
Failure
instance
-