Class RsaPKCS8Key
java.lang.Object
com.aquima.interactions.foundation.security.cert.RsaPKCS8Key
- All Implemented Interfaces:
Serializable
RsaPKCS8Key. This implementation can import any PKCS#8 format certificate.
- Since:
- 17.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the private key.static RsaPKCS8Key
importFrom
(InputStream stream) Import a PKCS8 key from the stream.
-
Method Details
-
getPrivateKey
Get the private key.- Returns:
- PrivateKey
-
importFrom
Import a PKCS8 key from the stream.- Parameters:
stream
- stream to read the key from- Returns:
- RsaPKCS8Key
- Throws:
CryptoGraphicException
- when the stream is not provided or when the stream could not be readCryptoGraphicException
- when the stream contains an invalid key
-