Trait windows::Win32::Storage::Xps::IXpsSignatureManager_Impl

pub trait IXpsSignatureManager_Impl: Sized {
    // Required methods
    fn LoadPackageFile(&self, filename: &PCWSTR) -> Result<()>;
    fn LoadPackageStream(&self, stream: Option<&IStream>) -> Result<()>;
    fn Sign(
        &self,
        signoptions: Option<&IXpsSigningOptions>,
        x509certificate: *const CERT_CONTEXT,
    ) -> Result<IXpsSignature>;
    fn GetSignatureOriginPartName(&self) -> Result<IOpcPartUri>;
    fn SetSignatureOriginPartName(
        &self,
        signatureoriginpartname: Option<&IOpcPartUri>,
    ) -> Result<()>;
    fn GetSignatures(&self) -> Result<IXpsSignatureCollection>;
    fn AddSignatureBlock(
        &self,
        partname: Option<&IOpcPartUri>,
        fixeddocumentindex: u32,
    ) -> Result<IXpsSignatureBlock>;
    fn GetSignatureBlocks(&self) -> Result<IXpsSignatureBlockCollection>;
    fn CreateSigningOptions(&self) -> Result<IXpsSigningOptions>;
    fn SavePackageToFile(
        &self,
        filename: &PCWSTR,
        securityattributes: *const SECURITY_ATTRIBUTES,
        flagsandattributes: u32,
    ) -> Result<()>;
    fn SavePackageToStream(&self, stream: Option<&IStream>) -> Result<()>;
}

Required Methods§

fn LoadPackageFile(&self, filename: &PCWSTR) -> Result<()>

fn LoadPackageStream(&self, stream: Option<&IStream>) -> Result<()>

fn Sign( &self, signoptions: Option<&IXpsSigningOptions>, x509certificate: *const CERT_CONTEXT, ) -> Result<IXpsSignature>

fn GetSignatureOriginPartName(&self) -> Result<IOpcPartUri>

fn SetSignatureOriginPartName( &self, signatureoriginpartname: Option<&IOpcPartUri>, ) -> Result<()>

fn GetSignatures(&self) -> Result<IXpsSignatureCollection>

fn AddSignatureBlock( &self, partname: Option<&IOpcPartUri>, fixeddocumentindex: u32, ) -> Result<IXpsSignatureBlock>

fn GetSignatureBlocks(&self) -> Result<IXpsSignatureBlockCollection>

fn CreateSigningOptions(&self) -> Result<IXpsSigningOptions>

fn SavePackageToFile( &self, filename: &PCWSTR, securityattributes: *const SECURITY_ATTRIBUTES, flagsandattributes: u32, ) -> Result<()>

fn SavePackageToStream(&self, stream: Option<&IStream>) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§