Class RsaAesKeySet
java.lang.Object
com.aquima.interactions.foundation.security.cert.RsaAesKeySet
- All Implemented Interfaces:
Serializable
The RsaAesKeySet keeps tracks of an asymmetric RSA public and private key and an AES key
- Since:
- 17.1
- See Also:
-
Constructor Summary
ConstructorDescriptionRsaAesKeySet
(AesKey secretKey) Create a certificate set with related private certificate.RsaAesKeySet
(RsaX509Key key) Create a new key set with a public key only.RsaAesKeySet
(RsaX509Key publicKey, AesKey secretKey) Create a key set with related public and private key.RsaAesKeySet
(RsaX509Key publicKey, RsaPKCS8Key privateKey) Create a key set with related public and private key.RsaAesKeySet
(RsaX509Key publicKey, RsaPKCS8Key privateKey, AesKey secretKey) Create a key set with related public and private key. -
Method Summary
Modifier and TypeMethodDescriptionGet the private key if present.Get the public key.Get the secret key.
-
Constructor Details
-
RsaAesKeySet
Create a new key set with a public key only.- Parameters:
key
- A X509 compatible public key- Throws:
CryptoGraphicException
- When the key parameter is missing
-
RsaAesKeySet
Create a certificate set with related private certificate.- Parameters:
secretKey
- secretCertificate AES secret certificate.- Throws:
CryptoGraphicException
- When the parameter is missing
-
RsaAesKeySet
Create a key set with related public and private key.- Parameters:
publicKey
- A X509 compatible public keyprivateKey
- A PKC8 compatible private key- Throws:
CryptoGraphicException
- When one or more parameters are missing
-
RsaAesKeySet
Create a key set with related public and private key.- Parameters:
publicKey
- A X509 compatible public keyprivateKey
- A PKCS8 compatible private keysecretKey
- AES secret key.- Throws:
CryptoGraphicException
- When one or more parameters are missing
-
RsaAesKeySet
Create a key set with related public and private key.- Parameters:
publicKey
- A X509 compatible public keysecretKey
- AES secret key.- Throws:
CryptoGraphicException
- When one or more parameters are missing
-
-
Method Details
-
getPrivateKey
Get the private key if present.- Returns:
- RsaPKCS8Key. This method may return null
-
getPublicKey
Get the public key.- Returns:
- RsaX509Key
-
getSecretKey
Get the secret key.- Returns:
- AesKey
-