|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.http.authentication.basic.BasicAuthSession
Provide HTTP Basic authentication service.
Field Summary |
Constructor Summary | |
BasicAuthSession()
|
Method Summary | |
boolean |
authenticateRealm(XURL host,
OutboundHTTPRequest request,
AuthHeaderData data)
Given the data from a WWW-Authenticate challenge header, plus locally maintained state, calculate the appropriate response and add it to the outgoing request. |
PasswordCredentials |
getCredentials()
|
AuthHeaderData |
parseAuthHeader(java.lang.String header)
Given a WWW-Authenticate challenge header, parse it and return the results as an AuthHeaderData. |
void |
preAuthenticate(XURL host,
OutboundHTTPRequest request)
If we have enough information to add an authentication header, then add it. |
void |
setCredentials(PasswordCredentials credentials)
Users specify credentials as user names and passwords. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicAuthSession()
Method Detail |
public PasswordCredentials getCredentials()
getCredentials
in interface IAuthSession
public void setCredentials(PasswordCredentials credentials)
IAuthSession
setCredentials
in interface IAuthSession
credentials
- public AuthHeaderData parseAuthHeader(java.lang.String header)
IAuthSession
parseAuthHeader
in interface IAuthSession
header
- public boolean authenticateRealm(XURL host, OutboundHTTPRequest request, AuthHeaderData data) throws java.lang.SecurityException
IAuthSession
authenticateRealm
in interface IAuthSession
host
- request
- data
-
java.lang.SecurityException
public void preAuthenticate(XURL host, OutboundHTTPRequest request)
IAuthSession
preAuthenticate
in interface IAuthSession
host
- request
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |