AsymmetricKeyAlgorithmProvider.ImportKeyPair Method
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
ImportKeyPair(IBuffer) |
Imports a public/private key pair from a buffer. |
ImportKeyPair(IBuffer, CryptographicPrivateKeyBlobType) |
Imports a public/private key pair from a buffer in the specified format. |
ImportKeyPair(IBuffer)
Imports a public/private key pair from a buffer.
public:
virtual CryptographicKey ^ ImportKeyPair(IBuffer ^ keyBlob) = ImportKeyPair;
/// [Windows.Foundation.Metadata.Overload("ImportDefaultPrivateKeyBlob")]
CryptographicKey ImportKeyPair(IBuffer const& keyBlob);
[Windows.Foundation.Metadata.Overload("ImportDefaultPrivateKeyBlob")]
public CryptographicKey ImportKeyPair(IBuffer keyBlob);
function importKeyPair(keyBlob)
Public Function ImportKeyPair (keyBlob As IBuffer) As CryptographicKey
Parameters
- keyBlob
- IBuffer
Buffer that contains the key pair to import.
Returns
Represents the imported key pair.
- Attributes
See also
Applies to
ImportKeyPair(IBuffer, CryptographicPrivateKeyBlobType)
Imports a public/private key pair from a buffer in the specified format.
public:
virtual CryptographicKey ^ ImportKeyPair(IBuffer ^ keyBlob, CryptographicPrivateKeyBlobType BlobType) = ImportKeyPair;
/// [Windows.Foundation.Metadata.Overload("ImportKeyPairWithBlobType")]
CryptographicKey ImportKeyPair(IBuffer const& keyBlob, CryptographicPrivateKeyBlobType const& BlobType);
[Windows.Foundation.Metadata.Overload("ImportKeyPairWithBlobType")]
public CryptographicKey ImportKeyPair(IBuffer keyBlob, CryptographicPrivateKeyBlobType BlobType);
function importKeyPair(keyBlob, BlobType)
Public Function ImportKeyPair (keyBlob As IBuffer, BlobType As CryptographicPrivateKeyBlobType) As CryptographicKey
Parameters
- keyBlob
- IBuffer
Buffer that contains the key pair to import.
- BlobType
- CryptographicPrivateKeyBlobType
A CryptographicPrivateKeyBlobType enumeration value that specifies information about the private key contained in the keyBlob buffer. The default value is Pkcs8RawPrivateKeyInfo.
Returns
Represents the imported key pair.
- Attributes