Interface HttpAuthenticator

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
HttpURLConnectionAuthenticator
All Known Implementing Classes:
ConfiguredAuthorizationHeader, ConfiguredUsernamePassword, DynamicBasicAuthorizationHeader, MetadataAuthorizationHeader, MetadataUsernamePassword, NoAuthentication, UserPassAuthentication

public interface HttpAuthenticator extends AutoCloseable
HttpAuthenticator is an interface designed to facilitate HttpAuthentication in various ways.

Some implementations of this interface will need to temporarily mutate global state and therefore must be closed in a finally statement or try-with-resources block.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Undo whatever global state modifications have been made by this HttpAuthenticator.
    void
    Initialize the HttpAuthenticator for a message and return.