public class EntrustKeyStore
extends java.security.KeyStore
EntrustKeyStore class wraps the Java Security
KeyStore model around an instance of the Entrust User
class.
Do not instantiate this class using the
KeyStore.getInstance because the method provides no
means of passing a User object into the KeyStore.
Always instantiate an EntrustKeyStore using its
constructor.
java.security.KeyStore.Builder, java.security.KeyStore.CallbackHandlerProtection, java.security.KeyStore.Entry, java.security.KeyStore.LoadStoreParameter, java.security.KeyStore.PasswordProtection, java.security.KeyStore.PrivateKeyEntry, java.security.KeyStore.ProtectionParameter, java.security.KeyStore.SecretKeyEntry, java.security.KeyStore.TrustedCertificateEntry| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CA_CERTIFICATE |
static java.lang.String |
DECRYPTION_KEY |
static java.lang.String |
ENCRYPTION_CERTIFICATE |
static java.lang.String |
ENCRYPTION_KEY_PAIR_JTK_VERSION_6 |
static java.lang.String |
ROOT_CA_CERTIFICATE |
static java.lang.String |
SIGNING_KEY |
static java.lang.String |
SIGNING_KEY_PAIR_JTK_VERSION_6 |
static java.lang.String |
SUBCA |
static java.lang.String |
VERIFICATION_CERTIFICATE |
| Constructor and Description |
|---|
EntrustKeyStore(User user,
boolean clientMode)
Creates a new instance of the
EntrustKeyStore,
given a User object and the mode in which it should
operate. |
| Modifier and Type | Method and Description |
|---|---|
CollectionCS |
getCertStore()
Retrieves the user's certificate store.
|
User |
getUser()
Gets the Entrust user this Entrust key store is attached to.
|
aliases, containsAlias, deleteEntry, entryInstanceOf, getCertificate, getCertificateAlias, getCertificateChain, getCreationDate, getDefaultType, getEntry, getInstance, getInstance, getInstance, getKey, getProvider, getType, isCertificateEntry, isKeyEntry, load, load, setCertificateEntry, setEntry, setKeyEntry, setKeyEntry, size, store, storepublic static final java.lang.String SIGNING_KEY
public static final java.lang.String DECRYPTION_KEY
public static final java.lang.String VERIFICATION_CERTIFICATE
public static final java.lang.String ENCRYPTION_CERTIFICATE
public static final java.lang.String CA_CERTIFICATE
public static final java.lang.String SUBCA
public static final java.lang.String ROOT_CA_CERTIFICATE
public static final java.lang.String SIGNING_KEY_PAIR_JTK_VERSION_6
public static final java.lang.String ENCRYPTION_KEY_PAIR_JTK_VERSION_6
public EntrustKeyStore(User user, boolean clientMode)
EntrustKeyStore,
given a User object and the mode in which it should
operate.
The User must already be logged in. If the KeyStore
is to be used as the source of keys and verification
for an SSL server, then clientMode must be set to
false. If it is to be used as the source of keys
and verification for an SSL client, clientMode
must be set to true.
user - an Entrust User (already logged in)clientMode - false if keys are for SSL server,
true if keys are for SSL clientpublic CollectionCS getCertStore() throws UserNotLoggedInException
The certificate store is used by the Entrust trust verifier.
UserNotLoggedInExceptionpublic User getUser()