|
||||||||||
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 | |
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHTTPHeaders(java.lang.String url)
Returns a set of HTTP headers (key-value pairs) that should be added to a HTTP call. |
protected java.lang.String |
getPassword()
Gets the password from the session. |
protected java.lang.String |
getProxyPassword()
Gets the proxy password from the session. |
protected java.lang.String |
getProxyUser()
Gets the proxy user name from the session. |
BindingSession |
getSession()
Returns BindingSession . |
org.w3c.dom.Element |
getSOAPHeaders(java.lang.Object portObject)
Returns a SOAP header that should be added to a Web Services call. |
protected java.lang.String |
getUser()
Gets the user name from the session. |
void |
putResponseHeaders(java.lang.String url,
int statusCode,
java.util.Map<java.lang.String,java.util.List<java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHTTPHeaders(java.lang.String url)
AuthenticationProvider
getHTTPHeaders
in interface AuthenticationProvider
url
- the URL of the HTTP call
null
if no additional headers
should be setpublic org.w3c.dom.Element getSOAPHeaders(java.lang.Object portObject)
AuthenticationProvider
getSOAPHeaders
in interface AuthenticationProvider
portObject
- the port object
null
if no additional headers
should be setpublic void putResponseHeaders(java.lang.String url, int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
AuthenticationProvider
putResponseHeaders
in interface AuthenticationProvider
url
- the URLstatusCode
- the status codeheaders
- the HTTP headersprotected java.lang.String getUser()
null
if the user name is not setprotected java.lang.String getPassword()
null
if the password is not setprotected java.lang.String getProxyUser()
null
if the user name is not
setprotected java.lang.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 |