pub struct VerifySignedDataRequestBuilder { /* private fields */ }
Expand description
Builder for VerifySignedDataRequest
.
Implementations§
Source§impl VerifySignedDataRequestBuilder
impl VerifySignedDataRequestBuilder
pub fn mount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn hash_algorithm<VALUE: Into<HashAlgorithm>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hash_algorithm<VALUE: Into<HashAlgorithm>>( &mut self, value: VALUE, ) -> &mut Self
Specifies the hash algorithm to use.
Sourcepub fn input<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn input<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the base64 encoded input data.
Sourcepub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the signature output from the /transit/sign function. Either this must be supplied or hmac must be supplied.
Sourcepub fn hmac<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn hmac<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the signature output from the /transit/hmac function. Either this must be supplied or signature must be supplied.
Sourcepub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys.
Sourcepub fn prehashed<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn prehashed<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Set to true when the input is already hashed. If the key type is rsa-2048, rsa-3072 or rsa-4096, then the algorithm used to hash the input should be indicated by the hash_algorithm parameter.
Sourcepub fn signature_algorithm<VALUE: Into<SignatureAlgorithm>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn signature_algorithm<VALUE: Into<SignatureAlgorithm>>( &mut self, value: VALUE, ) -> &mut Self
When using a RSA key, specifies the RSA signature algorithm to use for signature verification.
Sourcepub fn marshaling_algorithm<VALUE: Into<MarshalingAlgorithm>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn marshaling_algorithm<VALUE: Into<MarshalingAlgorithm>>( &mut self, value: VALUE, ) -> &mut Self
Specifies the way in which the signature was originally marshaled. This currently only applies to ECDSA keys.
Sourcepub fn build(
&self,
) -> Result<VerifySignedDataRequest, VerifySignedDataRequestBuilderError>
pub fn build( &self, ) -> Result<VerifySignedDataRequest, VerifySignedDataRequestBuilderError>
Trait Implementations§
Source§impl Clone for VerifySignedDataRequestBuilder
impl Clone for VerifySignedDataRequestBuilder
Source§fn clone(&self) -> VerifySignedDataRequestBuilder
fn clone(&self) -> VerifySignedDataRequestBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more