|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.truststore.client.CredentialServiceClient
public class CredentialServiceClient
Enables you to programmatically interact with the LiveCycle ES Credential Service. A credential contains your private key information needed for signing or identifying documents. A certificate is public key information that you configure for trust. LiveCycle ES4 uses certificates and credentials for several purposes:
Constructor Summary | |
---|---|
CredentialServiceClient(ServiceClientFactory serviceClientFactory)
|
Method Summary | |
---|---|
void |
addCredential(CredentialBO credential)
Adds a credential to LiveCycle. |
void |
clearAllHSMConnections()
For internal use only. |
void |
deleteCredential(java.lang.String alias)
Deletes a credential from LiveCyle ES2. |
void |
deregisterCacheInvalidationHandler(java.lang.String serviceName,
java.lang.String operationName)
For internal use only. |
Document |
exportCredential(java.lang.String alias,
java.lang.String keyPassword)
Exports a credential from LiveCyle ES2. |
java.util.List |
fetchAllCredentialsInfo()
For internal use only. |
CredentialBO |
findCredentialByAlias(java.lang.String alias,
java.lang.String keyPassword)
Finds a credential by using an alias value. |
CredentialBO |
findCredentialBySubjectDN(java.lang.String subjectDN)
Finds a credential by using the subjectDN value. |
java.util.List |
findCredentials(com.adobe.truststore.businessobject.CredentialSearchFilter searchFilter)
Finds a given credential. |
java.util.List |
getCredentialsOnToken(java.lang.String pkcs11Lib,
java.lang.Integer slotListIndex,
java.lang.String pwd,
java.lang.String hsmDev)
For internal use only. |
com.adobe.truststore.businessobject.CredentialType[] |
getCredentialTypes(java.lang.String locale)
Gets a list of supported credential types. |
void |
importCredential(java.lang.String alias,
Document p12Credential,
java.lang.String keyPassword,
java.lang.String[] types)
Imports a credential into LiveCyle ES2. |
HSMDeviceInfo |
listSlots(java.lang.String pkcs11Lib)
For internal use only. |
void |
registerCacheInvalidationHandler(java.lang.String serviceName,
java.lang.String operationName)
For internal use only. |
void |
resetCredentialCache()
Resets the credential cache. |
void |
setCredentialTypes(java.lang.String alias,
java.lang.String[] credentialTypes)
For internal use only. |
void |
updateCredential(java.lang.String alias,
CredentialBO credential)
Updates a given credential. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialServiceClient(ServiceClientFactory serviceClientFactory)
Method Detail |
---|
public com.adobe.truststore.businessobject.CredentialType[] getCredentialTypes(java.lang.String locale) throws java.lang.Exception
locale
- The locale value of credential.
CredentialType
objects that represent the supported types.
java.lang.Exception
public void addCredential(CredentialBO credential) throws java.lang.Exception
credential
- A CredentialBO
object that represents the credential to add.
java.lang.Exception
public void importCredential(java.lang.String alias, Document p12Credential, java.lang.String keyPassword, java.lang.String[] types) throws java.lang.Exception
alias
- A string value that represents the alias that corresponds to the credential. When using the credential, you reference it using this alias value.p12Credential
- A com.adobe.ipd.Document
instance that represents the credential to import.keyPassword
- A string value that represents the password that corresponds to the credential.types
- A string array that represents the credential type. For example, specify truststore.usage.type.sign
to import a credential used to sign a PDF document.
java.lang.Exception
public Document exportCredential(java.lang.String alias, java.lang.String keyPassword) throws java.lang.Exception
alias
- A string value that represents the alias that corresponds to the credential.keyPassword
- A string value that represents the password that corresponds to the credential.
com.adobe.ipd.Document
instance that represents the exported credential.
java.lang.Exception
public void deleteCredential(java.lang.String alias) throws java.lang.Exception
alias
- A string value that represents the alias that corresponds to the credential.
java.lang.Exception
public void setCredentialTypes(java.lang.String alias, java.lang.String[] credentialTypes) throws java.lang.Exception
java.lang.Exception
public void updateCredential(java.lang.String alias, CredentialBO credential) throws java.lang.Exception
alias
- A string value that represents the alias that corresponds to the credential.A
- CredentialBO
object that represents the updated credential.
java.lang.Exception
public java.util.List findCredentials(com.adobe.truststore.businessobject.CredentialSearchFilter searchFilter) throws java.lang.Exception
searchFilter
- A CredentialSearchFilter
object that represents a search filter.
java.util.List
instance where each element is a credential that satisfies the search filter.
java.lang.Exception
public CredentialBO findCredentialByAlias(java.lang.String alias, java.lang.String keyPassword) throws java.lang.Exception
alias
- A string value that represents the alias that corresponds to the credential. When using the credential, you reference it using this alias value.keyPassword
- A string value that represents the password that corresponds to the credential.
CredentialBO
instance that represents the credential that corresponds to the alias.
java.lang.Exception
public CredentialBO findCredentialBySubjectDN(java.lang.String subjectDN) throws java.lang.Exception
subjectDN
- A string value that represents the subjectDN value.
CredentialBO
instance that represents the credential that corresponds to the subjectDN value.
java.lang.Exception
public void registerCacheInvalidationHandler(java.lang.String serviceName, java.lang.String operationName) throws java.lang.Exception
java.lang.Exception
public void deregisterCacheInvalidationHandler(java.lang.String serviceName, java.lang.String operationName) throws java.lang.Exception
java.lang.Exception
public void resetCredentialCache() throws java.lang.Exception
java.lang.Exception
public java.util.List getCredentialsOnToken(java.lang.String pkcs11Lib, java.lang.Integer slotListIndex, java.lang.String pwd, java.lang.String hsmDev) throws java.lang.Exception
java.lang.Exception
public HSMDeviceInfo listSlots(java.lang.String pkcs11Lib) throws java.lang.Exception
java.lang.Exception
public java.util.List fetchAllCredentialsInfo() throws java.lang.Exception
java.lang.Exception
public void clearAllHSMConnections() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |