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
ConstructorsConstructorDescriptionFailure(int responseCode) Creates aFailureinstance with given response code. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the response code to send to the client.
-
Constructor Details
-
Failure
public Failure(int responseCode) Creates aFailureinstance with given response code.- Parameters:
responseCode- the response code to associate with thisFailureinstance
-
-
Method Details
-
getResponseCode
public int getResponseCode()Returns the response code to send to the client.- Returns:
- the response code associated with this
Failureinstance
-