|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator
org.apache.jena.atlas.web.auth.AbstractScopedAuthenticator<Pair<String,char[]>>
org.apache.jena.atlas.web.auth.ScopedAuthenticator
public class ScopedAuthenticator
A credentials based authenticator where credentials are scoped to URIs. This allows for a single authenticator to present different credentials to different URIs as appropriate. Works with the basic and digest HTTP authentication schemes.
See ScopedNTAuthenticator for an implementation that works for the
NTLM authentication scheme.
| Constructor Summary | |
|---|---|
ScopedAuthenticator(Map<URI,Pair<String,char[]>> credentials)
Creates an authenticator with a set of credentials for URIs |
|
ScopedAuthenticator(URI target,
String username,
char[] password)
Creates an authenticator with credentials for the given URI |
|
| Method Summary | |
|---|---|
void |
addCredentials(URI target,
String username,
char[] password)
Adds/Overwrites credentials for a given URI |
| Methods inherited from class org.apache.jena.atlas.web.auth.AbstractCredentialsAuthenticator |
|---|
apply, invalidate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopedAuthenticator(URI target,
String username,
char[] password)
target - URIusername - User namepassword - Passwordpublic ScopedAuthenticator(Map<URI,Pair<String,char[]>> credentials)
credentials - Credentials| Method Detail |
|---|
public void addCredentials(URI target,
String username,
char[] password)
target - Targetusername - User namepassword - Password
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||