src/share/classes/com/sun/net/httpserver/Authenticator.java
Print this page
*** 34,43 ****
--- 34,44 ----
* such as Digest or Basic auth. Instances are invoked to provide verification
* of the authentication information provided in all incoming requests.
* Note. This implies that any caching of credentials or other authentication
* information must be done outside of this class.
*/
+ @jdk.Supported
public abstract class Authenticator {
/**
* Base class for return type from authenticate() method
*/
*** 45,54 ****
--- 46,56 ----
/**
* Indicates an authentication failure. The authentication
* attempt has completed.
*/
+ @jdk.Supported
public static class Failure extends Result {
private int responseCode;
public Failure (int responseCode) {
*** 66,75 ****
--- 68,78 ----
/**
* Indicates an authentication has succeeded and the
* authenticated user principal can be acquired by calling
* getPrincipal().
*/
+ @jdk.Supported
public static class Success extends Result {
private HttpPrincipal principal;
public Success (HttpPrincipal p) {
principal = p;
*** 87,96 ****
--- 90,100 ----
* response code to be sent back is as returned from
* getResponseCode(). The Authenticator must also have
* set any necessary response headers in the given HttpExchange
* before returning this Retry object.
*/
+ @jdk.Supported
public static class Retry extends Result {
private int responseCode;
public Retry (int responseCode) {