| Modifier and Type | Class and Description |
|---|---|
| public static class | Authenticator.
Indicates an authentication failure. |
| public abstract static class | Authenticator.
Base class for return type from |
| public static class | Authenticator.
Indicates an authentication must be retried. |
| public static class | Authenticator.
Indicates an authentication has succeeded and the
authenticated user principal can be acquired by calling
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Authenticator. | Returns: the resultthe exch)HttpExchange upon which authenticate is calledCalled to authenticate each incoming request. |
| Authenticator | back to summary |
|---|---|
| protected Authenticator() Constructor for subclasses to call. | |
| authenticate | back to summary |
|---|---|
| public abstract Authenticator. Called to authenticate each incoming request. The implementation
must return a
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public | Failure(int
the response code to associate with this
responseCode)Failure instanceCreates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the response code associated with thisFailure instanceReturns the response code to send to the client. |
| responseCode | back to summary |
|---|---|
| private int responseCode | |
| Failure | back to summary |
|---|---|
| public Failure(int responseCode) Creates a
| |
| getResponseCode | back to summary |
|---|---|
| public int getResponseCode() Returns the response code to send to the client.
| |
authenticate(HttpExchange) method.
| Access | Constructor and Description |
|---|---|
| protected |
| Result | back to summary |
|---|---|
| protected Result() Constructor for subclasses to call. | |
getResponseCode(). The Authenticator must also have
set any necessary response headers in the given HttpExchange
before returning this Retry object.
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public | Retry(int
the response code to associate with this
responseCode)Retry instanceCreates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the response code associated with thisRetry instanceReturns the response code to send to the client. |
| responseCode | back to summary |
|---|---|
| private int responseCode | |
| Retry | back to summary |
|---|---|
| public Retry(int responseCode) Creates a
| |
| getResponseCode | back to summary |
|---|---|
| public int getResponseCode() Returns the response code to send to the client.
| |
getPrincipal().
| Modifier and Type | Field and Description |
|---|---|
| private HttpPrincipal |
| Access | Constructor and Description |
|---|---|
| public | Success(HttpPrincipal
the authenticated user you wish to set as p)PrincipalCreates a |
| Modifier and Type | Method and Description |
|---|---|
| public HttpPrincipal | Returns: thePrincipal instance associated with the authenticated userReturns the authenticated user |
| principal | back to summary |
|---|---|
| private HttpPrincipal principal | |
| Success | back to summary |
|---|---|
| public Success(HttpPrincipal p) Creates a
| |
| getPrincipal | back to summary |
|---|---|
| public HttpPrincipal getPrincipal() Returns the authenticated user
| |