Top Inners Fields Constructors Methods
com.oracle.bmc.http.client.pki

pack-priv Class Pkcs1EncryptedPrivateKeyInfo

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
javax.crypto.SecretKey, javax.crypto.spec.IvParameterSpec, .PBEKeySpec, .SecretKeySpec, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, java.util.Arrays, .Base64, java.util.regex.Matcher, .Pattern

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final AlgorithmParameterSpec
private final byte[]
private final int
private static final Pattern
private final byte[]
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv String
public static Pkcs1EncryptedPrivateKeyInfo.Builder
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

pack-priv byte[]
pack-priv AlgorithmParameterSpec
pack-priv static Pkcs1EncryptedPrivateKeyInfo
of(final Pem.Encryption encryption)

pack-priv static Pkcs1EncryptedPrivateKeyInfo
of(final Utf8 content)

pack-priv SecretKey
secretKey(final char[] passphrase)

private static String
transformation(final String algorithmName, final String algorithmMode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algParamSpecback to summary
private final AlgorithmParameterSpec algParamSpec
encodedback to summary
private final byte[] encoded
keySizeback to summary
private final int keySize
PKCS1_ALGORITHM_PATTERNback to summary
private static final Pattern PKCS1_ALGORITHM_PATTERN
saltback to summary
private final byte[] salt
transformationback to summary
private final String transformation

Constructor Detail

Pkcs1EncryptedPrivateKeyInfoback to summary
private Pkcs1EncryptedPrivateKeyInfo(Pkcs1EncryptedPrivateKeyInfo.Builder builder)

Method Detail

algorithmNameback to summary
pack-priv String algorithmName()
builderback to summary
public static Pkcs1EncryptedPrivateKeyInfo.Builder builder()
closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
encodedback to summary
pack-priv byte[] encoded()
getAlgParametersback to summary
pack-priv AlgorithmParameterSpec getAlgParameters()
ofback to summary
pack-priv static Pkcs1EncryptedPrivateKeyInfo of(final Pem.Encryption encryption)
ofback to summary
pack-priv static Pkcs1EncryptedPrivateKeyInfo of(final Utf8 content)
secretKeyback to summary
pack-priv SecretKey secretKey(final char[] passphrase)
transformationback to summary
private static String transformation(final String algorithmName, final String algorithmMode)
com.oracle.bmc.http.client.pki back to summary

pack-priv final Class Pkcs1EncryptedPrivateKeyInfo.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.http.client.pki.Pkcs1EncryptedPrivateKeyInfo.Builder

Field Summary

Modifier and TypeField and Description
private byte[]
private byte[]
private int
private byte[]
private String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Pkcs1EncryptedPrivateKeyInfo
public Pkcs1EncryptedPrivateKeyInfo.Builder
encoded(byte[] encoded)

public Pkcs1EncryptedPrivateKeyInfo.Builder
iv(byte[] iv)

public Pkcs1EncryptedPrivateKeyInfo.Builder
keySize(int keySize)

public Pkcs1EncryptedPrivateKeyInfo.Builder
salt(byte[] salt)

public Pkcs1EncryptedPrivateKeyInfo.Builder
transformation(String transformation)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encodedback to summary
private byte[] encoded
ivback to summary
private byte[] iv
keySizeback to summary
private int keySize
saltback to summary
private byte[] salt
transformationback to summary
private String transformation

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
public Pkcs1EncryptedPrivateKeyInfo build()
encodedback to summary
public Pkcs1EncryptedPrivateKeyInfo.Builder encoded(byte[] encoded)
ivback to summary
public Pkcs1EncryptedPrivateKeyInfo.Builder iv(byte[] iv)
keySizeback to summary
public Pkcs1EncryptedPrivateKeyInfo.Builder keySize(int keySize)
saltback to summary
public Pkcs1EncryptedPrivateKeyInfo.Builder salt(byte[] salt)
transformationback to summary
public Pkcs1EncryptedPrivateKeyInfo.Builder transformation(String transformation)