CngKey.Export(CngKeyBlobFormat) 메서드

정의

키 자료를 지정된 형식으로 BLOB으로 내보냅니다.

public:
 cli::array <System::Byte> ^ Export(System::Security::Cryptography::CngKeyBlobFormat ^ format);
public byte[] Export (System.Security.Cryptography.CngKeyBlobFormat format);
[System.Security.SecurityCritical]
public byte[] Export (System.Security.Cryptography.CngKeyBlobFormat format);
member this.Export : System.Security.Cryptography.CngKeyBlobFormat -> byte[]
[<System.Security.SecurityCritical>]
member this.Export : System.Security.Cryptography.CngKeyBlobFormat -> byte[]
Public Function Export (format As CngKeyBlobFormat) As Byte()

매개 변수

format
CngKeyBlobFormat

키 BLOB의 형식을 지정하는 개체입니다.

반환

Byte[]

키 자료가 지정된 형식으로 들어 있는 BLOB입니다.

특성

예외

format이(가) null인 경우

다른 모든 오류입니다. 일반적으로 ExportPolicy에서 키 내보내기를 허용하지 않는 경우입니다.

설명

CNG(Cryptography Next Generation)는 기본 KSP(키 스토리지 공급자)가 지원하는 모든 형식으로 내보낼 수 있습니다. For example, on Windows Vista,the default KSP (which is MicrosoftSoftwareKeyStorageProvider) only allows export of private keys in the Pkcs8PrivateBlob, EccPrivateBlob, and OpaqueTransportBlob formats. 이 제한은 기본 KSP에 의해 제어됩니다. 다른 KSP를 사용하는 경우 다른 형식이 적용될 수 있습니다.

적용 대상