java.lang.Object
org.elasticsearch.license.CryptUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeyreadEncryptedPrivateKey(byte[] fileContents) Read encrypted private key file content with default pass phrasestatic PrivateKeyreadEncryptedPrivateKey(byte[] fileContents, char[] passPhrase, boolean preV4) Read encrypted private key file content with providedpassPhrasestatic PublicKeyreadPublicKey(byte[] fileContents) Read public key file contentstatic byte[]writeEncryptedPrivateKey(PrivateKey privateKey) Returns encrypted private key file content with default pass phrasestatic byte[]writeEncryptedPrivateKey(PrivateKey privateKey, char[] passPhrase) Returns encrypted private key file content with providedpassPhrasestatic byte[]writeEncryptedPublicKey(PublicKey publicKey) Returns encrypted public key file content with providedpassPhrase
-
Constructor Details
-
CryptUtils
public CryptUtils()
-
-
Method Details
-
readEncryptedPrivateKey
Read encrypted private key file content with default pass phrase -
writeEncryptedPrivateKey
Returns encrypted private key file content with default pass phrase -
readEncryptedPrivateKey
public static PrivateKey readEncryptedPrivateKey(byte[] fileContents, char[] passPhrase, boolean preV4) Read encrypted private key file content with providedpassPhrase -
readPublicKey
Read public key file content -
writeEncryptedPublicKey
Returns encrypted public key file content with providedpassPhrase -
writeEncryptedPrivateKey
Returns encrypted private key file content with providedpassPhrase
-