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