com.iplanet.trustbase.security.store
Class TokenKeyStoreEntry

java.lang.Object
  |
  +--com.iplanet.trustbase.security.store.TokenKeyStoreEntry
Direct Known Subclasses:
KeyEntry, TrustedCertificateEntry

public abstract class TokenKeyStoreEntry
extends java.lang.Object

an entry in a TokenKeyStore database. Entries are either TrustedCertificateEntrys or KeyEntrys.

Each entry is associated with at least one alias. At a minimum their will be a single alias which will be fixed as the RFC2253 encoding of the subject name in the certificate.

A more flexible single alias, or additional aliases may be supported at the discretion of the TokenKeyStore implementation


Method Summary
abstract  void addAlias(java.lang.String alias)
          add an alias to this entry
abstract  java.util.Set getAliases()
          get all aliases associated with this entry
 java.lang.String getIssuerName()
           
 java.math.BigInteger getSerialNo()
           
 java.lang.String getSubjectName()
          get the subjectName associated with this entry
abstract  void removeAlias(java.lang.String alias)
          remove an alias from this entry.
protected  void setSubject(java.lang.String subjectName, java.lang.String issuerName, java.math.BigInteger serialNo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSubjectName

public java.lang.String getSubjectName()
get the subjectName associated with this entry
Returns:
the subjectName. not empty

getIssuerName

public java.lang.String getIssuerName()

getSerialNo

public java.math.BigInteger getSerialNo()

setSubject

protected final void setSubject(java.lang.String subjectName,
                                java.lang.String issuerName,
                                java.math.BigInteger serialNo)

getAliases

public abstract java.util.Set getAliases()
get all aliases associated with this entry
Returns:
a Set of Strings. not empty

addAlias

public abstract void addAlias(java.lang.String alias)
                       throws AliasConflictException,
                              TokenKeyStoreException
add an alias to this entry
Parameters:
alias - the alias to add. not null. not empty
Throws:
AliasConflictException - thrown if the alias is already in use

removeAlias

public abstract void removeAlias(java.lang.String alias)
                          throws TokenKeyStoreException
remove an alias from this entry. silently completes if the specified alias is not present
Parameters:
alias - the alias to remove. may be null