Struct tss_esapi::structures::PublicBuilder
source · [−]pub struct PublicBuilder { /* private fields */ }Expand description
A builder for the Public type.
Implementations
sourceimpl PublicBuilder
impl PublicBuilder
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new PublicBuilder
Details
Builds the Public type using the provided parameters. Parameters associated with other algorithms then the provided public algorithm will be ignored.
sourcepub const fn with_public_algorithm(
self,
public_algorithm: PublicAlgorithm
) -> Self
pub const fn with_public_algorithm(
self,
public_algorithm: PublicAlgorithm
) -> Self
Adds the public algorithm for the Public structure to the builder.
sourcepub const fn with_object_attributes(
self,
object_attributes: ObjectAttributes
) -> Self
pub const fn with_object_attributes(
self,
object_attributes: ObjectAttributes
) -> Self
Adds the attributes of the Public structure to the builder
sourcepub const fn with_name_hashing_algorithm(
self,
name_hashing_algorithm: HashingAlgorithm
) -> Self
pub const fn with_name_hashing_algorithm(
self,
name_hashing_algorithm: HashingAlgorithm
) -> Self
Adds the name hash algorithm for the Public strucutre to the builder.
sourcepub fn with_auth_policy(self, auth_policy: Digest) -> Self
pub fn with_auth_policy(self, auth_policy: Digest) -> Self
Adds the auth policy for the Public strucutre to the builder
sourcepub fn with_rsa_parameters(self, rsa_parameters: PublicRsaParameters) -> Self
pub fn with_rsa_parameters(self, rsa_parameters: PublicRsaParameters) -> Self
sourcepub fn with_rsa_unique_identifier(
self,
rsa_unique_identifier: PublicKeyRsa
) -> Self
pub fn with_rsa_unique_identifier(
self,
rsa_unique_identifier: PublicKeyRsa
) -> Self
sourcepub fn with_keyed_hash_parameters(
self,
keyed_hash_parameters: PublicKeyedHashParameters
) -> Self
pub fn with_keyed_hash_parameters(
self,
keyed_hash_parameters: PublicKeyedHashParameters
) -> Self
sourcepub fn with_keyed_hash_unique_identifier(
self,
keyed_hash_unique_identifier: Digest
) -> Self
pub fn with_keyed_hash_unique_identifier(
self,
keyed_hash_unique_identifier: Digest
) -> Self
sourcepub const fn with_ecc_parameters(
self,
ecc_parameters: PublicEccParameters
) -> Self
pub const fn with_ecc_parameters(
self,
ecc_parameters: PublicEccParameters
) -> Self
sourcepub fn with_ecc_unique_identifier(self, ecc_unique_identifier: EccPoint) -> Self
pub fn with_ecc_unique_identifier(self, ecc_unique_identifier: EccPoint) -> Self
sourcepub const fn with_symmetric_cipher_parameters(
self,
symmetric_cipher_parameters: SymmetricCipherParameters
) -> Self
pub const fn with_symmetric_cipher_parameters(
self,
symmetric_cipher_parameters: SymmetricCipherParameters
) -> Self
sourcepub fn with_symmetric_cipher_unique_identifier(
self,
symmetric_cipher_unique_identifier: Digest
) -> Self
pub fn with_symmetric_cipher_unique_identifier(
self,
symmetric_cipher_unique_identifier: Digest
) -> Self
Trait Implementations
sourceimpl Clone for PublicBuilder
impl Clone for PublicBuilder
sourcefn clone(&self) -> PublicBuilder
fn clone(&self) -> PublicBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublicBuilder
impl Send for PublicBuilder
impl Sync for PublicBuilder
impl Unpin for PublicBuilder
impl UnwindSafe for PublicBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more