public class BasicCredentialsComponent extends com.endeca.soleng.eac.toolkit.base.EacElement implements Credentials
Constructor and Description |
---|
BasicCredentialsComponent() |
Modifier and Type | Method and Description |
---|---|
void |
applyCredentials(org.apache.http.impl.client.DefaultHttpClient defaultHttpClient,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Sets the authentication information in the http client and request.
|
void |
clearCredentials(org.apache.http.impl.client.DefaultHttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Clears the authentication information from the http client and request.
|
com.endeca.soleng.eac.toolkit.util.AccessCredentials |
getAccessCredentials() |
String |
getCredentialsKey() |
com.endeca.soleng.eac.toolkit.util.CSFManager |
getCredentialStore() |
void |
setCredentialsKey(String credentialsKey) |
void |
setCredentialStore(com.endeca.soleng.eac.toolkit.util.CSFManager credentialStore) |
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public com.endeca.soleng.eac.toolkit.util.CSFManager getCredentialStore()
public void setCredentialStore(com.endeca.soleng.eac.toolkit.util.CSFManager credentialStore)
public String getCredentialsKey()
public void setCredentialsKey(String credentialsKey)
public com.endeca.soleng.eac.toolkit.util.AccessCredentials getAccessCredentials()
public void applyCredentials(org.apache.http.impl.client.DefaultHttpClient defaultHttpClient, org.apache.http.client.methods.HttpRequestBase httpRequest) throws org.apache.http.auth.AuthenticationException
Credentials
applyCredentials
in interface Credentials
defaultHttpClient
- the client being authenticatedhttpRequest
- the request being authenticatedorg.apache.http.auth.AuthenticationException
- if authorization string cannot
be generated due to an authentication failurepublic void clearCredentials(org.apache.http.impl.client.DefaultHttpClient httpClient, org.apache.http.client.methods.HttpRequestBase httpRequest)
Credentials
clearCredentials
in interface Credentials
httpClient
- the client being authenticatedhttpRequest
- the request being authenticatedCopyright © 2014, Oracle and/or its affiliates. All rights reserved.