| Package | Description |
|---|---|
| com.entrust.toolkit.capi |
Contains low-level classes for interfacing with Microsoft's Crypto API.
|
| Modifier and Type | Field and Description |
|---|---|
static KeySpec |
KeySpec.AT_KEYEXCHANGE |
static KeySpec |
KeySpec.AT_SIGNATURE |
| Modifier and Type | Method and Description |
|---|---|
KeySpec |
CryptKey.getKeySpec()
Gets the key specifier associated with this key.
|
KeySpec |
CryptKeyProvInfo.getKeySpec()
Returns the key specification of the private key.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
CryptKey.encodePrivateKey(java.security.PrivateKey privateKey,
KeySpec keySpec)
Encodes a software-based private key to MSCAPI key blob representation.
|
static java.security.KeyPair |
CryptKey.generateKeyPair(CryptProvider provider,
EntrustAsymKeyType keyType,
KeySpec keySpec,
int flags)
Generates a key pair in MSCAPI.
|
static CryptKey |
CryptKey.getInstance(CryptProvider provider,
KeySpec keySpec)
Creates and returns a
CryptKey object associated with a
public/private key pair that already exists in CAPI. |
static CapiPrivateKey |
CryptKey.importPrivateKey(CryptProvider provider,
java.security.PrivateKey privateKey,
KeySpec keySpec,
int flags,
boolean forceSecureKeyImport)
Imports the provided software-based private key into MSCAPI, using the
provided key specifier to determine the MSCAPI key algorithm for the key.
|
| Constructor and Description |
|---|
CryptKeyProvInfo(java.lang.String containerName,
java.lang.String providerName,
ProviderType providerType,
int flags,
KeySpec keySpec)
Public constructor.
|