Imports the certificate in the token.

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function ImportCertificate ( _
	cert As X509Certificate2, _
	session As Session, _
	id As Byte(), _
	label As String _
) As X509Certificate
C#
public static X509Certificate ImportCertificate(
	X509Certificate2 cert,
	Session session,
	byte[] id,
	string label
)
Visual C++
public:
static X509Certificate^ ImportCertificate(
	X509Certificate2^ cert, 
	Session^ session, 
	array<unsigned char>^ id, 
	String^ label
)
JavaScript
Cryptware.NCryptoki.Utils.importCertificate = function(cert, session, id, label);

Parameters

cert
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate.
session
Type: Cryptware.NCryptoki..::..Session
The session.
id
Type: array<System..::..Byte>[]()[]
The id.
label
Type: System..::..String
The label.

Return Value

See Also