Jaa


AsymmetricKeyAlgorithmProvider.ImportPublicKey Method

Definition

Overloads

ImportPublicKey(IBuffer)

Imports a public key into a buffer.

ImportPublicKey(IBuffer, CryptographicPublicKeyBlobType)

Imports a public key into a buffer for a specified format.

ImportPublicKey(IBuffer)

Imports a public key into a buffer.

public:
 virtual CryptographicKey ^ ImportPublicKey(IBuffer ^ keyBlob) = ImportPublicKey;
/// [Windows.Foundation.Metadata.Overload("ImportDefaultPublicKeyBlob")]
CryptographicKey ImportPublicKey(IBuffer const& keyBlob);
[Windows.Foundation.Metadata.Overload("ImportDefaultPublicKeyBlob")]
public CryptographicKey ImportPublicKey(IBuffer keyBlob);
function importPublicKey(keyBlob)
Public Function ImportPublicKey (keyBlob As IBuffer) As CryptographicKey

Parameters

keyBlob
IBuffer

Buffer that contains the key to import.

Returns

Represents the imported key.

Attributes

See also

Applies to

ImportPublicKey(IBuffer, CryptographicPublicKeyBlobType)

Imports a public key into a buffer for a specified format.

public:
 virtual CryptographicKey ^ ImportPublicKey(IBuffer ^ keyBlob, CryptographicPublicKeyBlobType BlobType) = ImportPublicKey;
/// [Windows.Foundation.Metadata.Overload("ImportPublicKeyWithBlobType")]
CryptographicKey ImportPublicKey(IBuffer const& keyBlob, CryptographicPublicKeyBlobType const& BlobType);
[Windows.Foundation.Metadata.Overload("ImportPublicKeyWithBlobType")]
public CryptographicKey ImportPublicKey(IBuffer keyBlob, CryptographicPublicKeyBlobType BlobType);
function importPublicKey(keyBlob, BlobType)
Public Function ImportPublicKey (keyBlob As IBuffer, BlobType As CryptographicPublicKeyBlobType) As CryptographicKey

Parameters

keyBlob
IBuffer

Buffer that contains the key to import.

BlobType
CryptographicPublicKeyBlobType

A CryptographicPublicKeyBlobType enumeration value that specifies the format of the public key contained in the keyBlob buffer. The default value is X509SubjectPublicKeyInfo.

Returns

Represents the imported key.

Attributes

See also

Applies to