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.
|
javax.xml.ws.handler.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 SessionAwareAuthenticationProvider
public BindingSession getSession()
BindingSession
.public Map<String,List<String>> getHTTPHeaders(String url)
AuthenticationProvider
getHTTPHeaders
in interface AuthenticationProvider
url
- the URL of the HTTP callnull
if no additional headers
should be setpublic Element getSOAPHeaders(Object portObject)
AuthenticationProvider
getSOAPHeaders
in interface AuthenticationProvider
portObject
- the port objectnull
if no additional headers
should be setpublic javax.xml.ws.handler.HandlerResolver getHandlerResolver()
AuthenticationProvider
HandlerResolver
object that provides a list of SOAP
handlers.getHandlerResolver
in interface AuthenticationProvider
null
if no handlers 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 headerspublic SSLSocketFactory getSSLSocketFactory()
AuthenticationProvider
getSSLSocketFactory
in interface AuthenticationProvider
SSLSocketFactory
or null
public HostnameVerifier getHostnameVerifier()
AuthenticationProvider
getHostnameVerifier
in interface AuthenticationProvider
HostnameVerifier
or null
protected 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-2014 The Apache Software Foundation. All Rights Reserved.