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