|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
public abstract class AbstractAuthenticationProvider
Authentication provider class.
Constructor Summary | |
---|---|
AbstractAuthenticationProvider()
|
Method Summary | |
---|---|
Map<String,List<String>> |
getHTTPHeaders(String url)
Returns a set of HTTP headers (key-value pairs) that should be added to a HTTP call. |
protected String |
getPassword()
Gets the password from the session. |
protected String |
getProxyPassword()
Gets the proxy password from the session. |
protected String |
getProxyUser()
Gets the proxy user name from the session. |
BindingSession |
getSession()
Returns BindingSession . |
Element |
getSOAPHeaders(Object portObject)
Returns a SOAP header that should be added to a Web Services call. |
protected String |
getUser()
Gets the user name from the session. |
void |
putResponseHeaders(String url,
int statusCode,
Map<String,List<String>> headers)
Receives the HTTP headers after a call. |
void |
setSession(BindingSession session)
Sets the BindingSession the authentication provider lives in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAuthenticationProvider()
Method Detail |
---|
public void setSession(BindingSession session)
BindingSession
the authentication provider lives in.
setSession
in interface SessionAwareAuthenticationProvider
public BindingSession getSession()
BindingSession
.
public Map<String,List<String>> getHTTPHeaders(String url)
AuthenticationProvider
getHTTPHeaders
in interface AuthenticationProvider
url
- the URL of the HTTP call
null
if no additional headers
should be setpublic Element getSOAPHeaders(Object portObject)
AuthenticationProvider
getSOAPHeaders
in interface AuthenticationProvider
portObject
- the port object
null
if no additional headers
should be setpublic void putResponseHeaders(String url, int statusCode, Map<String,List<String>> headers)
AuthenticationProvider
putResponseHeaders
in interface AuthenticationProvider
url
- the URLstatusCode
- the status codeheaders
- the HTTP headersprotected String getUser()
null
if the user name is not setprotected String getPassword()
null
if the password is not setprotected String getProxyUser()
null
if the user name is not
setprotected String getProxyPassword()
null
if the password is not
set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |