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

See Also:
Serialized Form

Field Summary
static int HSM
           
static int LOCAL
           
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
           
 
Constructor Summary
CredentialBO(CredentialBO other)
           
CredentialBO(java.lang.String alias, java.security.KeyPair keyPair, java.lang.String keyPassword, byte[][] certificateChain, java.lang.String[] credentialUseTypes)
           
CredentialBO(java.lang.String alias, java.security.KeyPair keyPair, java.lang.String keyPassword, java.security.cert.Certificate[] certificateChain, java.lang.String[] credentialUseTypes)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two CertificateBO Objects are equal if their private keys are equal
 java.lang.String getAlias()
           
 java.security.cert.Certificate[] getCertificateChain()
          Get the certificate chain for this credential
 java.lang.String[] getCredentialUseTypes()
          getCredentialUseType - get multiple use types per credential
 java.util.Date getExpirationDate()
           
 java.lang.String getIssuer()
           
 java.security.KeyPair getKeyPair()
           
 java.lang.String getKeyPassword()
          Get the optional password that will be used to encrypt the Private Key before storage
 SignExecutor getSignatureExecutor()
           
 java.lang.String getSubject()
           
 int hashCode()
           
 java.lang.String toString()
           
 int type()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCAL

public static final int LOCAL
See Also:
Constant Field Values

HSM

public static final int HSM
See Also:
Constant Field Values

U_PWD

public static final int U_PWD
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)

CredentialBO

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

CredentialBO

public CredentialBO(CredentialBO other)
Method Detail

getSignatureExecutor

public SignExecutor getSignatureExecutor()

type

public int type()

getAlias

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

getExpirationDate

public java.util.Date getExpirationDate()
Returns:
Returns the expirationDate.

getIssuer

public java.lang.String getIssuer()
Returns:
Returns the issuer.

getSubject

public java.lang.String getSubject()
Returns:
Returns the principalId.

getKeyPair

public java.security.KeyPair getKeyPair()
Returns:
Returns 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()
getCredentialUseType - get multiple use types per credential

Returns:

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