Package io.smallrye.certs.pem.parsers
Class EncryptedPKCS8Parser
java.lang.Object
io.smallrye.certs.pem.parsers.EncryptedPKCS8Parser
- All Implemented Interfaces:
PKPemParser
-
Field Summary
FieldsFields inherited from interface io.smallrye.certs.pem.parsers.PKPemParser
BASE64_TEXT, BASE64_TEXT_GROUP, RSA_ALGORITHM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.buffer.BufferdecryptKey(String content, String secret) Retrieves the private key as plain PKCS#8 from the encrypted PKCS#8 content.Extracts the private key from the encrypted PKCS#8 format.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.certs.pem.parsers.PKPemParser
decodeBase64
-
Field Details
-
PBES2_ALGORITHM
- See Also:
-
-
Constructor Details
-
EncryptedPKCS8Parser
public EncryptedPKCS8Parser()
-
-
Method Details
-
getKey
Extracts the private key from the encrypted PKCS#8 format.- Specified by:
getKeyin interfacePKPemParser- Parameters:
content- the encrypted PKCS#8 contentpassword- the password to decrypt the key- Returns:
- the private key or
nullif the content is not a PKCS#8 encrypted key
-
decryptKey
Retrieves the private key as plain PKCS#8 from the encrypted PKCS#8 content.- Parameters:
content- the encrypted PKCS#8 contentsecret- the password to decrypt the key- Returns:
- the decrypted PKCS#8 key or
nullif the content is not a PKCS#8 encrypted key
-