Trait IX509PrivateKey_Impl
pub trait IX509PrivateKey_Impl: IDispatch_Impl {
Show 58 methods
// Required methods
fn Open(&self) -> Result<()>;
fn Create(&self) -> Result<()>;
fn Close(&self) -> Result<()>;
fn Delete(&self) -> Result<()>;
fn Verify(&self, verifytype: X509PrivateKeyVerify) -> Result<()>;
fn Import(
&self,
strexporttype: &BSTR,
strencodedkey: &BSTR,
encoding: EncodingType,
) -> Result<()>;
fn Export(
&self,
strexporttype: &BSTR,
encoding: EncodingType,
) -> Result<BSTR>;
fn ExportPublicKey(&self) -> Result<IX509PublicKey>;
fn ContainerName(&self) -> Result<BSTR>;
fn SetContainerName(&self, value: &BSTR) -> Result<()>;
fn ContainerNamePrefix(&self) -> Result<BSTR>;
fn SetContainerNamePrefix(&self, value: &BSTR) -> Result<()>;
fn ReaderName(&self) -> Result<BSTR>;
fn SetReaderName(&self, value: &BSTR) -> Result<()>;
fn CspInformations(&self) -> Result<ICspInformations>;
fn SetCspInformations(
&self,
pvalue: Ref<'_, ICspInformations>,
) -> Result<()>;
fn CspStatus(&self) -> Result<ICspStatus>;
fn SetCspStatus(&self, pvalue: Ref<'_, ICspStatus>) -> Result<()>;
fn ProviderName(&self) -> Result<BSTR>;
fn SetProviderName(&self, value: &BSTR) -> Result<()>;
fn ProviderType(&self) -> Result<X509ProviderType>;
fn SetProviderType(&self, value: X509ProviderType) -> Result<()>;
fn LegacyCsp(&self) -> Result<VARIANT_BOOL>;
fn SetLegacyCsp(&self, value: VARIANT_BOOL) -> Result<()>;
fn Algorithm(&self) -> Result<IObjectId>;
fn SetAlgorithm(&self, pvalue: Ref<'_, IObjectId>) -> Result<()>;
fn KeySpec(&self) -> Result<X509KeySpec>;
fn SetKeySpec(&self, value: X509KeySpec) -> Result<()>;
fn Length(&self) -> Result<i32>;
fn SetLength(&self, value: i32) -> Result<()>;
fn ExportPolicy(&self) -> Result<X509PrivateKeyExportFlags>;
fn SetExportPolicy(&self, value: X509PrivateKeyExportFlags) -> Result<()>;
fn KeyUsage(&self) -> Result<X509PrivateKeyUsageFlags>;
fn SetKeyUsage(&self, value: X509PrivateKeyUsageFlags) -> Result<()>;
fn KeyProtection(&self) -> Result<X509PrivateKeyProtection>;
fn SetKeyProtection(&self, value: X509PrivateKeyProtection) -> Result<()>;
fn MachineContext(&self) -> Result<VARIANT_BOOL>;
fn SetMachineContext(&self, value: VARIANT_BOOL) -> Result<()>;
fn SecurityDescriptor(&self) -> Result<BSTR>;
fn SetSecurityDescriptor(&self, value: &BSTR) -> Result<()>;
fn get_Certificate(&self, encoding: EncodingType) -> Result<BSTR>;
fn put_Certificate(
&self,
encoding: EncodingType,
value: &BSTR,
) -> Result<()>;
fn UniqueContainerName(&self) -> Result<BSTR>;
fn Opened(&self) -> Result<VARIANT_BOOL>;
fn DefaultContainer(&self) -> Result<VARIANT_BOOL>;
fn Existing(&self) -> Result<VARIANT_BOOL>;
fn SetExisting(&self, value: VARIANT_BOOL) -> Result<()>;
fn Silent(&self) -> Result<VARIANT_BOOL>;
fn SetSilent(&self, value: VARIANT_BOOL) -> Result<()>;
fn ParentWindow(&self) -> Result<i32>;
fn SetParentWindow(&self, value: i32) -> Result<()>;
fn UIContextMessage(&self) -> Result<BSTR>;
fn SetUIContextMessage(&self, value: &BSTR) -> Result<()>;
fn SetPin(&self, value: &BSTR) -> Result<()>;
fn FriendlyName(&self) -> Result<BSTR>;
fn SetFriendlyName(&self, value: &BSTR) -> Result<()>;
fn Description(&self) -> Result<BSTR>;
fn SetDescription(&self, value: &BSTR) -> Result<()>;
}
Required Methods§
fn Open(&self) -> Result<()>
fn Create(&self) -> Result<()>
fn Close(&self) -> Result<()>
fn Delete(&self) -> Result<()>
fn Verify(&self, verifytype: X509PrivateKeyVerify) -> Result<()>
fn Import( &self, strexporttype: &BSTR, strencodedkey: &BSTR, encoding: EncodingType, ) -> Result<()>
fn Export(&self, strexporttype: &BSTR, encoding: EncodingType) -> Result<BSTR>
fn ExportPublicKey(&self) -> Result<IX509PublicKey>
fn ContainerName(&self) -> Result<BSTR>
fn SetContainerName(&self, value: &BSTR) -> Result<()>
fn ContainerNamePrefix(&self) -> Result<BSTR>
fn SetContainerNamePrefix(&self, value: &BSTR) -> Result<()>
fn ReaderName(&self) -> Result<BSTR>
fn SetReaderName(&self, value: &BSTR) -> Result<()>
fn CspInformations(&self) -> Result<ICspInformations>
fn SetCspInformations(&self, pvalue: Ref<'_, ICspInformations>) -> Result<()>
fn CspStatus(&self) -> Result<ICspStatus>
fn SetCspStatus(&self, pvalue: Ref<'_, ICspStatus>) -> Result<()>
fn ProviderName(&self) -> Result<BSTR>
fn SetProviderName(&self, value: &BSTR) -> Result<()>
fn ProviderType(&self) -> Result<X509ProviderType>
fn SetProviderType(&self, value: X509ProviderType) -> Result<()>
fn LegacyCsp(&self) -> Result<VARIANT_BOOL>
fn SetLegacyCsp(&self, value: VARIANT_BOOL) -> Result<()>
fn Algorithm(&self) -> Result<IObjectId>
fn SetAlgorithm(&self, pvalue: Ref<'_, IObjectId>) -> Result<()>
fn KeySpec(&self) -> Result<X509KeySpec>
fn SetKeySpec(&self, value: X509KeySpec) -> Result<()>
fn Length(&self) -> Result<i32>
fn SetLength(&self, value: i32) -> Result<()>
fn ExportPolicy(&self) -> Result<X509PrivateKeyExportFlags>
fn SetExportPolicy(&self, value: X509PrivateKeyExportFlags) -> Result<()>
fn KeyUsage(&self) -> Result<X509PrivateKeyUsageFlags>
fn SetKeyUsage(&self, value: X509PrivateKeyUsageFlags) -> Result<()>
fn KeyProtection(&self) -> Result<X509PrivateKeyProtection>
fn SetKeyProtection(&self, value: X509PrivateKeyProtection) -> Result<()>
fn MachineContext(&self) -> Result<VARIANT_BOOL>
fn SetMachineContext(&self, value: VARIANT_BOOL) -> Result<()>
fn SecurityDescriptor(&self) -> Result<BSTR>
fn SetSecurityDescriptor(&self, value: &BSTR) -> Result<()>
fn get_Certificate(&self, encoding: EncodingType) -> Result<BSTR>
fn put_Certificate(&self, encoding: EncodingType, value: &BSTR) -> Result<()>
fn UniqueContainerName(&self) -> Result<BSTR>
fn Opened(&self) -> Result<VARIANT_BOOL>
fn DefaultContainer(&self) -> Result<VARIANT_BOOL>
fn Existing(&self) -> Result<VARIANT_BOOL>
fn SetExisting(&self, value: VARIANT_BOOL) -> Result<()>
fn Silent(&self) -> Result<VARIANT_BOOL>
fn SetSilent(&self, value: VARIANT_BOOL) -> Result<()>
fn ParentWindow(&self) -> Result<i32>
fn SetParentWindow(&self, value: i32) -> Result<()>
fn UIContextMessage(&self) -> Result<BSTR>
fn SetUIContextMessage(&self, value: &BSTR) -> Result<()>
fn SetPin(&self, value: &BSTR) -> Result<()>
fn FriendlyName(&self) -> Result<BSTR>
fn SetFriendlyName(&self, value: &BSTR) -> Result<()>
fn Description(&self) -> Result<BSTR>
fn SetDescription(&self, value: &BSTR) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.