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.
|
AccessCredentials |
getAccessCredentials() |
String |
getCredentialsKey() |
CSFManager |
getCredentialStore() |
void |
setCredentialsKey(String credentialsKey) |
void |
setCredentialStore(CSFManager credentialStore) |
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDirpublic CSFManager getCredentialStore()
public void setCredentialStore(CSFManager credentialStore)
public String getCredentialsKey()
public void setCredentialsKey(String credentialsKey)
public 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
CredentialsapplyCredentials in interface CredentialsdefaultHttpClient - 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)
CredentialsclearCredentials in interface CredentialshttpClient - the client being authenticatedhttpRequest - the request being authenticatedCopyright © 2014, Oracle and/or its affiliates. All rights reserved.