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 moreAuto Trait Implementations§
impl Freeze for SignDataRequestBuilder
impl RefUnwindSafe for SignDataRequestBuilder
impl Send for SignDataRequestBuilder
impl Sync for SignDataRequestBuilder
impl Unpin for SignDataRequestBuilder
impl UnwindSafe for SignDataRequestBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)