Udostępnij za pośrednictwem


EncryptedPrivateKeyInfo Constructors

Definition

Overloads

EncryptedPrivateKeyInfo(Byte[])

Constructs (i.

EncryptedPrivateKeyInfo(AlgorithmParameters, Byte[])

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm parameters and the encrypted data.

EncryptedPrivateKeyInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

EncryptedPrivateKeyInfo(String, Byte[])

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm name and the encrypted data.

EncryptedPrivateKeyInfo(Byte[])

Constructs (i.

[Android.Runtime.Register(".ctor", "([B)V", "")]
public EncryptedPrivateKeyInfo (byte[]? encoded);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Javax.Crypto.EncryptedPrivateKeyInfo : byte[] -> Javax.Crypto.EncryptedPrivateKeyInfo

Parameters

encoded
Byte[]

the ASN.1 encoding of this object. The contents of the array are copied to protect against subsequent modification.

Attributes

Exceptions

if parsing the encoded representation fails.

if encoded is null.

Remarks

Constructs (i.e., parses) an EncryptedPrivateKeyInfo from its ASN.1 encoding.

Java documentation for javax.crypto.EncryptedPrivateKeyInfo.EncryptedPrivateKeyInfo(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EncryptedPrivateKeyInfo(AlgorithmParameters, Byte[])

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm parameters and the encrypted data.

[Android.Runtime.Register(".ctor", "(Ljava/security/AlgorithmParameters;[B)V", "")]
public EncryptedPrivateKeyInfo (Java.Security.AlgorithmParameters? algParams, byte[]? encryptedData);
[<Android.Runtime.Register(".ctor", "(Ljava/security/AlgorithmParameters;[B)V", "")>]
new Javax.Crypto.EncryptedPrivateKeyInfo : Java.Security.AlgorithmParameters * byte[] -> Javax.Crypto.EncryptedPrivateKeyInfo

Parameters

algParams
AlgorithmParameters

the algorithm parameters for the encryption algorithm. algParams.getEncoded() should return the ASN.1 encoded bytes of the parameters field of the AlgorithmIdentifer component of the EncryptedPrivateKeyInfo type.

encryptedData
Byte[]

encrypted data. The contents of encrypedData are copied to protect against subsequent modification when constructing this object.

Attributes

Exceptions

if the algorithm name of the specified algParams parameter is not supported.

if algParams or encryptedData is null.

Remarks

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm parameters and the encrypted data.

Java documentation for javax.crypto.EncryptedPrivateKeyInfo.EncryptedPrivateKeyInfo(java.security.AlgorithmParameters, byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EncryptedPrivateKeyInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected EncryptedPrivateKeyInfo (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Crypto.EncryptedPrivateKeyInfo : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Crypto.EncryptedPrivateKeyInfo

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EncryptedPrivateKeyInfo(String, Byte[])

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm name and the encrypted data.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "")]
public EncryptedPrivateKeyInfo (string? algName, byte[]? encryptedData);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[B)V", "")>]
new Javax.Crypto.EncryptedPrivateKeyInfo : string * byte[] -> Javax.Crypto.EncryptedPrivateKeyInfo

Parameters

algName
String

encryption algorithm name. See Appendix A in the Java Cryptography Architecture Reference Guide for information about standard Cipher algorithm names.

encryptedData
Byte[]

encrypted data. The contents of encrypedData are copied to protect against subsequent modification when constructing this object.

Attributes

Exceptions

if the encrAlgName is not a supported algorithm.

if encrAlgName or encryptedData is null.

if encryptedData is empty.

Remarks

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm name and the encrypted data.

Note: This constructor will use null as the value of the algorithm parameters. If the encryption algorithm has parameters whose value is not null, a different constructor, e.g. EncryptedPrivateKeyInfo(AlgorithmParameters, byte[]), should be used.

Java documentation for javax.crypto.EncryptedPrivateKeyInfo.EncryptedPrivateKeyInfo(java.lang.String, byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to