public class NativeKeyFactorySpi extends KeyFactorySpi
| Constructor and Description |
|---|
NativeKeyFactorySpi(int nativeAlgorithmId,
String algorithm)
SPI constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec)
Generates a private key object from the provided key specification (key material).
|
protected PublicKey |
engineGeneratePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material).
|
static int |
nativeGetAlgorithmDescription(byte[] algorithm) |
static int |
nativeGetPrivateKeyCloseId(int nativeAlgorithmId)
Gets the id of the native close function.
|
static int |
nativeGetPublicKeyCloseId(int nativeAlgorithmId)
Gets the id of the native close function.
|
public NativeKeyFactorySpi(int nativeAlgorithmId,
String algorithm)
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
KeyFactorySpiengineGeneratePrivate in class KeyFactorySpikeySpec - the specification (key material) of the private key.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a private key.protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
KeyFactorySpiengineGeneratePublic in class KeyFactorySpikeySpec - the specification (key material) of the public key.InvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a public key.public static int nativeGetAlgorithmDescription(byte[] algorithm)
algorithm - Null terminated string that describes the algorithmpublic static int nativeGetPrivateKeyCloseId(int nativeAlgorithmId)
nativeAlgorithmId - the algorithm IDNativeException - on errorpublic static int nativeGetPublicKeyCloseId(int nativeAlgorithmId)
nativeAlgorithmId - the algorithm IDNativeException - on error