com.adobe.truststore.businessobject
Class CredentialBO

java.lang.Object
  extended by com.adobe.truststore.businessobject.CredentialBO
All Implemented Interfaces:
java.io.Serializable

public class CredentialBO
extends java.lang.Object
implements java.io.Serializable

Represents a LiveCycle ES credential. You can use an instance of this type to perform tasks such as updating a credential. Methods that belong to the CredentialServiceClient object returns an instance of this type. For example, the findCredentialByAlias method returns an instance of this type.

See Also:
Serialized Form

Field Summary
static int HSM
          Represents the HSM value.
static int LOCAL
          Represents the local value.
static java.lang.String TRUST_STORE_USAGE_TYPE_LCRE
           
static java.lang.String TRUST_STORE_USAGE_TYPE_LCRE_DEFAULT
           
static java.lang.String TRUST_STORE_USAGE_TYPE_SIGN
           
static int U_PWD
          Represents the password value.
 
Constructor Summary
CredentialBO(CredentialBO other)
          A CredentialBO constructor.
CredentialBO(java.lang.String alias, java.security.KeyPair keyPair, java.lang.String keyPassword, byte[][] certificateChain, java.lang.String[] credentialUseTypes)
          A CredentialBO constructor.
CredentialBO(java.lang.String alias, java.security.KeyPair keyPair, java.lang.String keyPassword, java.security.cert.Certificate[] certificateChain, java.lang.String[] credentialUseTypes)
          A CredentialBO constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two CertificateBO Objects are equal if their private keys are equal
 java.lang.String getAlias()
          Returns the alias value.
 java.security.cert.Certificate[] getCertificateChain()
          Get the certificate chain for this credential.
 java.lang.String[] getCredentialUseTypes()
          Gets the multiple use types for the credential.
 java.util.Date getExpirationDate()
          Returns the expiration date.
 java.lang.String getIssuer()
          Returns the issuer of the credential.
 java.security.KeyPair getKeyPair()
          Returns the key pair.
 java.lang.String getKeyPassword()
          Get the optional password that will be used to encrypt the private key before storage.
 SignExecutor getSignatureExecutor()
          For internal use only.
 java.lang.String getSubject()
          Returns the principal identifier value of the credential.
 int hashCode()
           
 java.lang.String toString()
           
 int type()
          Returns the credential type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL

public static final int LOCAL
Represents the local value.

See Also:
Constant Field Values

HSM

public static final int HSM
Represents the HSM value.

See Also:
Constant Field Values

U_PWD

public static final int U_PWD
Represents the password value.

See Also:
Constant Field Values

TRUST_STORE_USAGE_TYPE_SIGN

public static java.lang.String TRUST_STORE_USAGE_TYPE_SIGN

TRUST_STORE_USAGE_TYPE_LCRE

public static java.lang.String TRUST_STORE_USAGE_TYPE_LCRE

TRUST_STORE_USAGE_TYPE_LCRE_DEFAULT

public static java.lang.String TRUST_STORE_USAGE_TYPE_LCRE_DEFAULT
Constructor Detail

CredentialBO

public CredentialBO(java.lang.String alias,
                    java.security.KeyPair keyPair,
                    java.lang.String keyPassword,
                    java.security.cert.Certificate[] certificateChain,
                    java.lang.String[] credentialUseTypes)
A CredentialBO constructor.

Parameters:
alias - A string value that represents the alias value.
KeyPair - A java.security.KeyPair instance.
An - array of Certificate instances.
An - array of string values that represents the credential types.

CredentialBO

public CredentialBO(java.lang.String alias,
                    java.security.KeyPair keyPair,
                    java.lang.String keyPassword,
                    byte[][] certificateChain,
                    java.lang.String[] credentialUseTypes)
A CredentialBO constructor.

Parameters:
alias - A string value that represents the alias value.
KeyPair - A java.security.KeyPair instance.
keyPassword - A string value that represents the password.
certificateChain - An array of bytes where each element is a byte array.
credentialUseTypes - An array of string values that represents the credential types.

CredentialBO

public CredentialBO(CredentialBO other)
A CredentialBO constructor.

Parameters:
other - A CredentialBO instance on which this instance is based.
Method Detail

getSignatureExecutor

public SignExecutor getSignatureExecutor()
For internal use only.


type

public int type()
Returns the credential type.


getAlias

public java.lang.String getAlias()
Returns the alias value.

Returns:
A string value that represents the alias value.

getExpirationDate

public java.util.Date getExpirationDate()
Returns the expiration date.

Returns:
A Date instance that represents the expiration value.

getIssuer

public java.lang.String getIssuer()
Returns the issuer of the credential.

Returns:
Returns the issuer.

getSubject

public java.lang.String getSubject()
Returns the principal identifier value of the credential.

Returns:
A string value that represents the principal identifier value of the credential.

getKeyPair

public java.security.KeyPair getKeyPair()
Returns the key pair.

Returns:
A KeyPair instance that represents the Key Pair.

getKeyPassword

public java.lang.String getKeyPassword()
Get the optional password that will be used to encrypt the private key before storage.


getCertificateChain

public java.security.cert.Certificate[] getCertificateChain()
Get the certificate chain for this credential.


getCredentialUseTypes

public java.lang.String[] getCredentialUseTypes()
Gets the multiple use types for the credential.

Returns:
A string array that represents the multiple use types for the credential.

equals

public boolean equals(java.lang.Object obj)
Two CertificateBO Objects are equal if their private keys are equal

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


[an error occurred while processing this directive] [an error occurred while processing this directive]