edu.stanford.peer.secrmi
Class TrustStore

java.lang.Object
  |
  +--edu.stanford.peer.secrmi.TrustStore
All Implemented Interfaces:
java.io.Serializable

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

The TrustStore class is essentially a Serializable copy of the public part of a KeyStore, i.e., all the certificate entries.

See Also:
Serialized Form

Constructor Summary
TrustStore(java.security.KeyStore ks)
          Creates a TrustStore object using a KeyStore object.
 
Method Summary
 java.security.KeyStore toKeyStore(java.lang.String type)
          Translate itself to a KeyStore object of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustStore

public TrustStore(java.security.KeyStore ks)
           throws java.security.KeyStoreException
Creates a TrustStore object using a KeyStore object.
Parameters:
ks - the key store to be converted to a trust store
Method Detail

toKeyStore

public java.security.KeyStore toKeyStore(java.lang.String type)
                                  throws java.security.KeyStoreException
Translate itself to a KeyStore object of the given type.
Parameters:
type - the type of the key store wanted, e.g., JKS
Returns:
the resulting key store