| Package | Description |
|---|---|
| com.entrust.toolkit.credentials |
Contains classes the enable creation, recovery, reading, and writing of
digital identities using a
variety of key sources, classes for implementing the Toolkit's KeyStore
capabilities, and classes to support integration with a Smart Card
Management System.
|
| com.entrust.toolkit.keychain |
| Modifier and Type | Method and Description |
|---|---|
static KeychainIdentities |
KeychainIdentities.findIdentities()
Searches the KeyChain for certificates that can be used to log in to a
User
object. |
static KeychainIdentities |
KeychainIdentities.findIdentities(KeychainCertFilter filter)
Searches the Keychain for certificates that can be used to log in to a
User object. |
static KeychainIdentities |
KeychainIdentities.findIdentities(KeychainCertFilter filter,
IdentityFilter idfilter)
Searches the Keychain for certificates that can be used to log in to
a
User object. |
static KeychainIdentity |
KeychainIdentities.findIdentity(KeychainCertFilter filter)
This method returns the first KeychainIdentity found after searching for identities
with the specific filter.
|
static KeychainPrivateKey |
KeychainPrivateKey.getInstance(KeychainKey keychainKey)
Creates and returns a
KeyChainPrivateKey using with an already initialized
Keychainkey. |
static KeychainPrivateKey |
KeychainPrivateKey.getInstance(X509Certificate cert)
Get an instance of a KeychainPrivateKey that is associated with the specified certificate.
|
| Constructor and Description |
|---|
KeychainCertProperties(Name issuerDN,
java.math.BigInteger serialNumber)
Create a new KeychainCertProperties object
|
KeychainCertProperties(X509Certificate certificate)
Create a new KeychainCertProperties object
|
KeychainEcPrivateKey(KeychainKey keychainkey)
The constructor for this EC Keychain Key
|
KeychainIdentityCertFilter(ContainerName KeychainContainerName)
This can be used to find all certificates in that particular identity.
|
KeychainIdentityCertFilter(java.security.Principal subjectDN)
This constructor takes a Principal which represents the
Subject Name of a Certificate as the criteria for filtering
acceptable certificates.
|
KeychainIdentityCertFilter(X509Certificate cert)
This constructor takes an X509Certificate and uses the SubjectName
as the criteria for filtering acceptable certificates.
|
KeychainPrivateKey(KeychainKey key)
The constructor for a KeychainPrivateKey.
|
KeychainRsaPrivateKey(KeychainKey keychainkey)
Constructor to the keychainRsa Private key.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
JniKeychain.createDecryptedData(KeychainPrivateKey key,
byte[] cipherText)
Decrypt the given CipherText using an RSA private key.
|
static byte[] |
JniKeychain.createEncryptedData(KeychainPrivateKey key,
byte[] plainText)
Encrypt the given data using an RSA Private key.
|
static byte[] |
JniKeychain.createRSASignaturePKCS1v15Raw(KeychainPrivateKey key,
byte[] encodedDigestInfoToSign)
Create the RSA PKCS1 v1.5 signature given the KeychainPrivateKey, the encoded
digest info data.
|
static byte[] |
JniKeychain.createSignature(KeychainPrivateKey key,
byte[] dataToSign)
Create the signature given the KeychainPrivateKey, the data to Sign and the
algorithm to use for the Signature.
|
static byte[] |
JniKeychain.encryptData(long publicKeyRef,
java.lang.String keychainAlgID,
byte[] plainText)
Encrypt the given data using an RSA public key.
|
java.security.PublicKey |
KeychainKey.exportPublicKey()
Exports the public key from the Keychain
FIPS 140-2:
FIPS Service: Key Input/Output (logical port)
This API is part of the logical interface to the Toolkit's FIPS 140-2
cryptographic module; use of this API causes the caller to assume the
FIPS 140-2 user role and accesses the following FIPS 140-2
logical interfaces:
control input interface (API call)
data output interface (return value)
status output interface (exceptions)
|
static java.security.KeyPair |
KeychainKey.generateKeyPair(EntrustAsymKeyType keyType)
Generates a key pair in the Keychain
FIPS 140-2:
FIPS Service: Key Generation
This API is part of the logical interface to the Toolkit's FIPS 140-2
cryptographic module; use of this API causes the caller to assume the
FIPS 140-2 crypto officer role and accesses the following FIPS 140-2
logical interfaces:
control input interface (API call, parameters)
data input interface (parameters)
data output interface (return value)
status output interface (exceptions)
|
java.lang.String |
KeychainKey.getAlgorithmName()
Returns the algorithm associated with this key, or
null if
the algorithm is not recognized. |
static KeychainKey |
KeychainKey.getInstance(X509Certificate cert)
Creates and returns a
KeychainKey object associated with a
public/private key pair that already exists in the Keychain
FIPS 140-2:
FIPS Service: Query Object
This API is part of the logical interface to the Toolkit's FIPS 140-2
cryptographic module; use of this API causes the caller to assume the
FIPS 140-2 user role and accesses the following FIPS 140-2 logical
interfaces:
control input interface (API call, parameters)
status output interface (exceptions)
|
byte[] |
KeychainKey.getKeyChainAttributeTypeAndValue(KeychainAttribute attribute)
Gets the value of a parameter associated with this key in the JniKeyChain.
|
java.security.spec.AlgorithmParameterSpec |
KeychainKey.getParams() |
static KeychainKey |
KeychainKey.importPrivateKeyAndCert(java.security.PrivateKey key,
java.lang.String keychainLabel,
X509Certificate cert,
java.lang.String certLabel,
boolean exportable,
java.lang.String keychainContainerName,
SecureStringBuffer password)
Import the private key and Certificate into the Keychain.
|
void |
KeychainKey.setKeyAttribute(KeychainAttributeTypeAndValue keychainAttrTypeAndValue)
Sets the value of a parameter associated with this key in the KeyChain.
|