public abstract class AbstractAuthenticationProvider extends Object implements SessionAwareAuthenticationProvider
| Constructor and Description |
|---|
AbstractAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBearerToken()
Gets the bearer token from the session.
|
HandlerResolver |
getHandlerResolver()
Returns a
HandlerResolver object that provides a list of SOAP
handlers. |
HostnameVerifier |
getHostnameVerifier()
Returns the Hostname Verifier for HTTPS connections.
|
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.
|
SSLSocketFactory |
getSSLSocketFactory()
Returns the SSL Socket Factory to be used when creating sockets for HTTPS
connections.
|
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. |
public void setSession(BindingSession session)
BindingSession the authentication provider lives in.setSession in interface SessionAwareAuthenticationProviderpublic BindingSession getSession()
BindingSession.public Map<String,List<String>> getHTTPHeaders(String url)
AuthenticationProvidergetHTTPHeaders in interface AuthenticationProviderurl - the URL of the HTTP callnull if no additional headers
should be setpublic Element getSOAPHeaders(Object portObject)
AuthenticationProvidergetSOAPHeaders in interface AuthenticationProviderportObject - the port objectnull if no additional headers
should be setpublic HandlerResolver getHandlerResolver()
AuthenticationProviderHandlerResolver object that provides a list of SOAP
handlers.getHandlerResolver in interface AuthenticationProvidernull if no handlers should be
setpublic void putResponseHeaders(String url, int statusCode, Map<String,List<String>> headers)
AuthenticationProviderputResponseHeaders in interface AuthenticationProviderurl - the URLstatusCode - the status codeheaders - the HTTP headerspublic SSLSocketFactory getSSLSocketFactory()
AuthenticationProvidergetSSLSocketFactory in interface AuthenticationProviderSSLSocketFactory or nullpublic HostnameVerifier getHostnameVerifier()
AuthenticationProvidergetHostnameVerifier in interface AuthenticationProviderHostnameVerifier or nullprotected String getUser()
null if the user name is not setprotected String getPassword()
null if the password is not setprotected String getBearerToken()
null if the token is not setprotected String getProxyUser()
null if the user name is not setprotected String getProxyPassword()
null if the password is not setCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.