ImportKey Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: System.Security.Cryptography
Assembly: Microsoft.SPOT.Security.PKCS11 (in Microsoft.SPOT.Security.PKCS11.dll)
Syntax
'Declaration
Public Shared Function ImportKey ( _
session As Session, _
keyData As Byte(), _
keyClass As CryptoKey.KeyClass, _
keyType As CryptoKey.KeyType, _
canBeExported As Boolean _
) As CryptoKey
public static CryptoKey ImportKey(
Session session,
byte[] keyData,
CryptoKey.KeyClass keyClass,
CryptoKey.KeyType keyType,
bool canBeExported
)
public:
static CryptoKey^ ImportKey(
Session^ session,
array<unsigned char>^ keyData,
CryptoKey::KeyClass keyClass,
CryptoKey::KeyType keyType,
bool canBeExported
)
static member ImportKey :
session:Session *
keyData:byte[] *
keyClass:CryptoKey.KeyClass *
keyType:CryptoKey.KeyType *
canBeExported:bool -> CryptoKey
public static function ImportKey(
session : Session,
keyData : byte[],
keyClass : CryptoKey..::..KeyClass,
keyType : CryptoKey..::..KeyType,
canBeExported : boolean
) : CryptoKey
Parameters
- session
Type: Microsoft.SPOT.Cryptoki. . :: . .Session
- keyData
Type: array<System. . :: . .Byte> [] () [] []
- canBeExported
Type: System. . :: . .Boolean
Return Value
Type: System.Security.Cryptography. . :: . .CryptoKey
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.