Package com.oracle.bmc.http.client.pki
Class Pem.Encryption
- java.lang.Object
-
- com.oracle.bmc.http.client.pki.Pem.Encryption
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- Pem
public static class Pem.Encryption extends Object
Configures how private keys are encrypted
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPem.Encryption.BuilderBuildPem.Encryptioninstances
-
Constructor Summary
Constructors Constructor Description Encryption(String algorithm, int keySize, byte[] iv, String blockMode, Pem.Passphrase passphrase, boolean ownsPassphrase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringalgorithm()The encryption algorithmStringblockMode()The block modestatic Pem.Encryption.Builderbuilder()BuildPem.Encryptioninstancesvoidclose()byte[]iv()The initialization vectorintkeySize()The key sizestatic Pem.Encryptionnone()Constant representing the absence of encryptionPem.Passphrasepassphrase()The encryption passphrase
-
-
-
Constructor Detail
-
Encryption
public Encryption(String algorithm, int keySize, byte[] iv, String blockMode, Pem.Passphrase passphrase, boolean ownsPassphrase)
-
-
Method Detail
-
none
public static Pem.Encryption none()
Constant representing the absence of encryption- Returns:
- Encryption instance
-
builder
public static Pem.Encryption.Builder builder()
BuildPem.Encryptioninstances- Returns:
- Builder instance
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
algorithm
public String algorithm()
The encryption algorithm- Returns:
- Encryption algorithm name
-
keySize
public int keySize()
The key size- Returns:
- Key size in bits
-
iv
public byte[] iv()
The initialization vector- Returns:
- Initialization vector
-
blockMode
public String blockMode()
The block mode- Returns:
- The block mode name
-
passphrase
public Pem.Passphrase passphrase()
The encryption passphrase- Returns:
- The passphrase
-
-