pub struct StoredPublicKey {
pub name: String,
pub key_info: KeyInfo,
pub usages: KeyUsages,
}Expand description
A named public key imported from an xmlsec key store.
Fields§
§name: StringOpaque caller-supplied lookup name.
key_info: KeyInfoParsed XMLDSig key material.
usages: KeyUsagesAllowed operations.
Implementations§
Source§impl StoredPublicKey
impl StoredPublicKey
Sourcepub fn encapsulation_key(
&self,
provider: &dyn CryptoProvider,
algorithm: KeyEncapsulationAlgorithm,
policy: &KeyEstablishmentPolicy,
resources: &ResourcePolicy,
) -> Result<Arc<dyn KeyEncapsulationKey>, KeyStoreError>
pub fn encapsulation_key( &self, provider: &dyn CryptoProvider, algorithm: KeyEncapsulationAlgorithm, policy: &KeyEstablishmentPolicy, resources: &ResourcePolicy, ) -> Result<Arc<dyn KeyEncapsulationKey>, KeyStoreError>
Import one named ML-KEM recipient; document hints never grant permission.
Sourcepub fn rsa_encryption_key(
&self,
policy: &EncryptionPolicy,
) -> Result<RsaPublicKey, KeyStoreError>
pub fn rsa_encryption_key( &self, policy: &EncryptionPolicy, ) -> Result<RsaPublicKey, KeyStoreError>
Decode this already-selected RSA recipient without searching the inventory again.
Auto Trait Implementations§
impl Freeze for StoredPublicKey
impl RefUnwindSafe for StoredPublicKey
impl Send for StoredPublicKey
impl Sync for StoredPublicKey
impl Unpin for StoredPublicKey
impl UnsafeUnpin for StoredPublicKey
impl UnwindSafe for StoredPublicKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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