public class StandardAuthenticationProvider extends AbstractAuthenticationProvider
| Constructor and Description |
|---|
StandardAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
createBasicAuthHeaderValue(String username,
String password)
Creates a basic authentication header value from a username and a
password.
|
protected Map<String,List<String>> |
getFixedHeaders()
Returns the HTTP headers that are sent with all requests.
|
Map<String,List<String>> |
getHTTPHeaders(String url)
Returns a set of HTTP headers (key-value pairs) that should be added to a
HTTP call.
|
Element |
getSOAPHeaders(Object portObject)
Returns a SOAP header that should be added to a Web Services call.
|
protected boolean |
isTrue(String parameterName)
Returns
true if the given parameter exists in the session
and is set to true, false otherwise. |
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. |
getHostnameVerifier, getPassword, getProxyPassword, getProxyUser, getSession, getSSLSocketFactory, getUserpublic void setSession(BindingSession session)
AbstractAuthenticationProviderBindingSession the authentication provider lives in.setSession in interface SessionAwareAuthenticationProvidersetSession in class AbstractAuthenticationProviderpublic Map<String,List<String>> getHTTPHeaders(String url)
AuthenticationProvidergetHTTPHeaders in interface AuthenticationProvidergetHTTPHeaders in class AbstractAuthenticationProviderurl - the URL of the HTTP callnull if no additional headers
should be setpublic void putResponseHeaders(String url, int statusCode, Map<String,List<String>> headers)
AuthenticationProviderputResponseHeaders in interface AuthenticationProviderputResponseHeaders in class AbstractAuthenticationProviderurl - the URLstatusCode - the status codeheaders - the HTTP headerspublic Element getSOAPHeaders(Object portObject)
AuthenticationProvidergetSOAPHeaders in interface AuthenticationProvidergetSOAPHeaders in class AbstractAuthenticationProviderportObject - the port objectnull if no additional headers
should be setprotected Map<String,List<String>> getFixedHeaders()
protected List<String> createBasicAuthHeaderValue(String username, String password)
protected boolean isTrue(String parameterName)
true if the given parameter exists in the session
and is set to true, false otherwise.Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.