public class ThreadLocalCredentials extends java.lang.Object implements ResourceAuthenticator
ResourceAuthenticator.ResourceTarget
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
java.net.PasswordAuthentication |
authenticate(ResourceAuthenticator.ResourceTarget target) |
static ThreadLocalCredentials |
getInstance(java.lang.String target)
Get an instance for the specified target.
|
static ThreadLocalCredentials |
getInstance(java.lang.String target,
ResourceTargetMatcher matcher)
Get an instance for the specified target using the specified
ResourceTargetMatcher . |
java.net.PasswordAuthentication |
getThreadCredentials() |
void |
removeThreadCredentials()
Remove the credentials for the current thread
|
void |
setThreadCredentials(java.net.PasswordAuthentication pwauth)
Set the credentials for the current thread
|
public java.net.PasswordAuthentication getThreadCredentials()
public void setThreadCredentials(java.net.PasswordAuthentication pwauth)
public void removeThreadCredentials()
public java.net.PasswordAuthentication authenticate(ResourceAuthenticator.ResourceTarget target)
authenticate
in interface ResourceAuthenticator
public static ThreadLocalCredentials getInstance(java.lang.String target)
public static ThreadLocalCredentials getInstance(java.lang.String target, ResourceTargetMatcher matcher)
ResourceTargetMatcher
.