pub struct BundleBuilder { /* private fields */ }Expand description
Builder for creating Sigstore bundles
Implementations§
Source§impl BundleBuilder
impl BundleBuilder
Sourcepub fn certificate(self, cert_der: Vec<u8>) -> Self
pub fn certificate(self, cert_der: Vec<u8>) -> Self
Set the signing certificate from DER bytes
Sourcepub fn certificate_base64(self, cert_b64: &str) -> Result<Self, &'static str>
pub fn certificate_base64(self, cert_b64: &str) -> Result<Self, &'static str>
Set the signing certificate from base64-encoded DER
Sourcepub fn certificate_chain(self, certs_der: Vec<Vec<u8>>) -> Self
pub fn certificate_chain(self, certs_der: Vec<Vec<u8>>) -> Self
Set the certificate chain from DER bytes
Sourcepub fn public_key(self, hint: String) -> Self
pub fn public_key(self, hint: String) -> Self
Set the public key hint
Sourcepub fn add_tlog_entry(self, entry: TransparencyLogEntry) -> Self
pub fn add_tlog_entry(self, entry: TransparencyLogEntry) -> Self
Add a transparency log entry
Sourcepub fn add_rfc3161_timestamp(self, signed_timestamp: Vec<u8>) -> Self
pub fn add_rfc3161_timestamp(self, signed_timestamp: Vec<u8>) -> Self
Add an RFC 3161 timestamp from DER bytes
Sourcepub fn message_signature(self, signature: Vec<u8>) -> Self
pub fn message_signature(self, signature: Vec<u8>) -> Self
Set the message signature from bytes (without digest)
Sourcepub fn message_signature_with_digest(
self,
signature: Vec<u8>,
digest: Sha256Hash,
algorithm: HashAlgorithm,
) -> Self
pub fn message_signature_with_digest( self, signature: Vec<u8>, digest: Sha256Hash, algorithm: HashAlgorithm, ) -> Self
Set the message signature with digest (recommended for cosign compatibility)
Sourcepub fn dsse_envelope(self, envelope: DsseEnvelope) -> Self
pub fn dsse_envelope(self, envelope: DsseEnvelope) -> Self
Set the DSSE envelope
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BundleBuilder
impl RefUnwindSafe for BundleBuilder
impl Send for BundleBuilder
impl Sync for BundleBuilder
impl Unpin for BundleBuilder
impl UnwindSafe for BundleBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more