public abstract class UserPassAuthentication extends java.lang.Object implements HttpAuthenticator
Constructor and Description |
---|
UserPassAuthentication() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Undo whatever global state modifications have been made by this HttpAuthenticator.
|
protected static char[] |
decodePassword(java.lang.String pw) |
protected abstract java.net.PasswordAuthentication |
getPasswordAuthentication(AdaptrisMessage msg) |
void |
setup(java.lang.String target,
AdaptrisMessage msg,
ResourceTargetMatcher matcher)
Initialize the HttpAuthenticator for a message and return.
|
public void setup(java.lang.String target, AdaptrisMessage msg, ResourceTargetMatcher matcher) throws CoreException
HttpAuthenticator
setup
in interface HttpAuthenticator
target
- The URL to set authenticate formsg
- The message to set up formatcher
- the ResourceTargetMatcher
to use, if null a default one will be created based on the
ResourceAuthenticator.ResourceTarget.getRequestingURL()
CoreException
protected abstract java.net.PasswordAuthentication getPasswordAuthentication(AdaptrisMessage msg) throws CoreException
CoreException
public void close()
HttpAuthenticator
close
in interface HttpAuthenticator
close
in interface java.lang.AutoCloseable
protected static char[] decodePassword(java.lang.String pw) throws CoreException
CoreException