public interface HttpAuthenticator
extends java.lang.AutoCloseable
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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Undo whatever global state modifications have been made by this HttpAuthenticator.
|
void |
setup(java.lang.String target,
AdaptrisMessage msg,
ResourceTargetMatcher auth)
Initialize the HttpAuthenticator for a message and return.
|
void setup(java.lang.String target, AdaptrisMessage msg, ResourceTargetMatcher auth) throws CoreException
target
- The URL to set authenticate formsg
- The message to set up forauth
- the ResourceTargetMatcher
to use, if null a default one will be created based on the
ResourceAuthenticator.ResourceTarget.getRequestingURL()
CoreException
void close()
close
in interface java.lang.AutoCloseable