CngKey.Export(CngKeyBlobFormat) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
키 자료를 지정된 형식으로 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를 사용하는 경우 다른 형식이 적용될 수 있습니다.