Package anbxj
Class Crypto_KeyPair
java.lang.Object
anbxj.Crypto_KeyPair
Represents a public/private key pair.
-
Constructor Summary
ConstructorsConstructorDescriptionCrypto_KeyPair
(String keyAlgorithm, int keySize) Constructs a Crypto_KeyPair with the specified key algorithm and size.Crypto_KeyPair
(String keyAlgorithm, int keySize, String provider) Constructs a Crypto_KeyPair with the specified key algorithm, size and provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKey
Gets the private key in the key pair.Gets the public key in the key pair.
-
Constructor Details
-
Crypto_KeyPair
Constructs a Crypto_KeyPair with the specified key algorithm and size.- Parameters:
keyAlgorithm
- The key algorithm.keySize
- The key size.
-
Crypto_KeyPair
Constructs a Crypto_KeyPair with the specified key algorithm, size and provider.- Parameters:
keyAlgorithm
- The key algorithm.keySize
- The key size.provider
- The security provider.
-
-
Method Details
-
getPublicKey
Gets the public key in the key pair.- Returns:
- The public key.
-
getPrivateKey
Gets the private key in the key pair.- Returns:
- The private key.
-