pub struct SignDataRequestBuilder { /* private fields */ }
Expand description
Builder for SignDataRequest
.
Implementations§
Source§impl SignDataRequestBuilder
impl SignDataRequestBuilder
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 key_version<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn key_version<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Specifies the version of the key to use for the operation. If not set, uses the latest version. Must be greater than or equal to the key’s min_encryption_version, if set.
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 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. Just as the value to sign should be the base64-encoded representation of the exact binary data you want signed, when set, input is expected to be base64-encoded binary hashed data, not hex-formatted.
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 signing.
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 should be marshaled. This currently only applies to ECDSA keys.
Sourcepub fn build(&self) -> Result<SignDataRequest, SignDataRequestBuilderError>
pub fn build(&self) -> Result<SignDataRequest, SignDataRequestBuilderError>
Trait Implementations§
Source§impl Clone for SignDataRequestBuilder
impl Clone for SignDataRequestBuilder
Source§fn clone(&self) -> SignDataRequestBuilder
fn clone(&self) -> SignDataRequestBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more