CngKey.Import 메서드

정의

키 자료를 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

오버로드

Import(Byte[], CngKeyBlobFormat, CngProvider)

지정된 형식을 사용하여 지정된 키 자료를 지정된 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

Import(Byte[], CngKeyBlobFormat)

지정된 형식을 사용하여 지정된 키 자료를 기본 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

Import(Byte[], CngKeyBlobFormat, CngProvider)

지정된 형식을 사용하여 지정된 키 자료를 지정된 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format, System::Security::Cryptography::CngProvider ^ provider);
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat, provider As CngProvider) As CngKey

매개 변수

keyBlob
Byte[]

키 정보를 포함하는 배열입니다.

format
CngKeyBlobFormat

keyBlob 배열의 형식을 지정하는 개체입니다.

provider
CngProvider

KSP입니다.

반환

CngKey

새 키입니다.

특성

예외

keyBlob, format 또는 providernull입니다.

CNG(Cryptography Next Generation)은 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

중요

Windows 7 및 Windows Server 2008 R2 이전의 Windows 운영 체제에서는 일부 CNG 키 BLOB(Binary Large Object) 형식이 지원되지 않습니다.

적용 대상

Import(Byte[], CngKeyBlobFormat)

지정된 형식을 사용하여 지정된 키 자료를 기본 KSP(키 스토리지 공급자)로 가져와 새 키를 만듭니다.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import (byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat) As CngKey

매개 변수

keyBlob
Byte[]

키 정보를 포함하는 배열입니다.

format
CngKeyBlobFormat

keyBlob 배열의 형식을 지정하는 개체입니다.

반환

CngKey

새 키입니다.

특성

예외

keyBlob 또는 formatnull인 경우

CNG(Cryptography Next Generation)은 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

기본 KSP는 .입니다 MicrosoftSoftwareKeyStorageProvider.

중요

Windows 7 및 Windows Server 2008 R2 이전의 Windows 운영 체제에서는 일부 CNG 키 BLOB(Binary Large Object) 형식이 지원되지 않습니다.

적용 대상