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입니다.

특성

예외

formatnull입니다.

다른 모든 오류입니다. 일반적으로 키를 ExportPolicy 내보낼 수 없습니다.

설명

CNG(Cryptography Next Generation)를 사용하면 기본 KSP(키 스토리지 공급자)가 지원하는 모든 형식으로 내보낼 수 있습니다. 예를 들어 Windows Vista 기본 KSP(MicrosoftSoftwareKeyStorageProvider)는 Pkcs8PrivateBlob, EccPrivateBlobOpaqueTransportBlob 형식의 프라이빗 키만 내보낼 수 있습니다. 이 제한은 기본 KSP에 의해 제어됩니다. 다른 KSP를 사용하는 경우 다른 형식이 적용될 수 있습니다.

적용 대상