pub struct DNSKey { /* private fields */ }Expand description
DNSSEC cryptographic key for zone signing
DNSKey wraps cryptographic key material and provides the ability to create DNSSEC signers for zone signing operations. It securely stores private key data using zeroization to prevent key material from remaining in memory.
Implementations§
Source§impl DNSKey
impl DNSKey
Sourcepub fn new(
key_data: impl Into<Box<[u8]>>,
algorithm: Algorithm,
ttl: TimeToLive,
) -> Self
pub fn new( key_data: impl Into<Box<[u8]>>, algorithm: Algorithm, ttl: TimeToLive, ) -> Self
Create a new DNSSEC key
Creates a new DNSSEC key from the provided key material, algorithm, and TTL. The key data should be in DER format.
§Arguments
key_data- The private key data in DER formatalgorithm- The DNSSEC algorithm to usettl- TTL for DNSKEY records created from this key
§Returns
A new DNSKey instance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DNSKey
impl RefUnwindSafe for DNSKey
impl Send for DNSKey
impl Sync for DNSKey
impl Unpin for DNSKey
impl UnsafeUnpin for DNSKey
impl UnwindSafe for DNSKey
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
Mutably borrows from an owned value. Read more