EncryptedPrivateKeyInfo Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| EncryptedPrivateKeyInfo(Byte[]) |
Constructs (i. |
| EncryptedPrivateKeyInfo(AlgorithmParameters, Byte[]) |
Constructs an <code>EncryptedPrivateKeyInfo</code> 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 <code>EncryptedPrivateKeyInfo</code> 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
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 <code>EncryptedPrivateKeyInfo</code> 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. <code>algParams.getEncoded()</code> should return the ASN.1 encoded bytes of the <code>parameters</code> field of the <code>AlgorithmIdentifer</code> component of the <code>EncryptedPrivateKeyInfo</code> type.
- encryptedData
- Byte[]
encrypted data. The contents of <code>encrypedData</code> 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
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
- 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 <code>EncryptedPrivateKeyInfo</code> 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 <a href= "https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA"> Java Cryptography Architecture Reference Guide</a> for information about standard Cipher algorithm names.
- encryptedData
- Byte[]
encrypted data. The contents of <code>encrypedData</code> 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
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.