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 KeyStore.
Because it is Serializable, it can contain only public information,
i.e., certificate entries, but not keys.
- 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 |
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
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