Android Guides | Samples

Javax.Crypto.EncryptedPrivateKeyInfo Class

This class implements the EncryptedPrivateKeyInfo ASN.1 type as specified in .

See Also: EncryptedPrivateKeyInfo

Syntax

[Android.Runtime.Register("javax/crypto/EncryptedPrivateKeyInfo", DoNotGenerateAcw=true)]
public class EncryptedPrivateKeyInfo : Object

Remarks

This class implements the EncryptedPrivateKeyInfo ASN.1 type as specified in .

The definition of ASN.1 is as follows:

EncryptedPrivateKeyInfo ::= SEQUENCE {
encryptionAlgorithm AlgorithmIdentifier,
encryptedData OCTET STRING }
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL }

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Javax.Crypto.EncryptedPrivateKeyInfo are listed below.

See Also: Object

Public Constructors

Creates an EncryptedPrivateKeyInfo instance from its encoded representation by parsing it.
Creates an EncryptedPrivateKeyInfo instance from the encryption algorithm parameters an its encrypted data.
Creates an EncryptedPrivateKeyInfo instance from an algorithm name and its encrypted data.

Protected Constructors

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

Public Properties

[read-only]
AlgNameString. Returns the name of the encryption algorithm.
[read-only]
AlgParametersAlgorithmParameters. Returns the parameters used by the encryption algorithm.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetEncoded() : Byte[]
Returns the ASN.1 encoded representation of this object.
GetEncryptedData() : Byte[]
Returns the encrypted data of this key.
GetKeySpec(IKey) : PKCS8EncodedKeySpec
Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.
GetKeySpec(Cipher) : PKCS8EncodedKeySpec
Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.
GetKeySpec(IKey, Provider) : PKCS8EncodedKeySpec
Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.
GetKeySpec(IKey, String) : PKCS8EncodedKeySpec
Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.