ApplicationRelatedData

Struct ApplicationRelatedData 

Source
pub struct ApplicationRelatedData(/* private fields */);
Expand description

Application Related Data [Spec section 4.4.3.1]

The “application related data” DO contains a set of DOs. This struct offers read access to these DOs.

(Note: when any of the information in this DO changes on the card, you need to re-read ApplicationRelatedData from the card to receive the new values!)

Implementations§

Source§

impl ApplicationRelatedData

Source

pub fn application_id(&self) -> Result<ApplicationIdentifier, Error>

Get application identifier (AID), ISO 7816-4

Source

pub fn historical_bytes(&self) -> Result<HistoricalBytes, Error>

Get historical bytes

Source

pub fn extended_length_information( &self, ) -> Result<Option<ExtendedLengthInfo>, Error>

Get extended length information (ISO 7816-4), which contains maximum number of bytes for command and response.

Source

pub fn extended_capabilities(&self) -> Result<ExtendedCapabilities, Error>

Get extended Capabilities

Source

pub fn algorithm_attributes( &self, key_type: KeyType, ) -> Result<AlgorithmAttributes, Error>

Get algorithm attributes (for each key type)

Source

pub fn pw_status_bytes(&self) -> Result<PWStatusBytes, Error>

Get PW status Bytes

Source

pub fn fingerprints(&self) -> Result<KeySet<Fingerprint>, Error>

Fingerprint, per key type. Zero bytes indicate a not defined private key.

Source

pub fn ca_fingerprints(&self) -> Result<[Option<Fingerprint>; 3], Error>

Source

pub fn key_generation_times(&self) -> Result<KeySet<KeyGenerationTime>, Error>

Generation dates/times of key pairs

Source

pub fn key_information(&self) -> Result<Option<KeyInformation>, Error>

Source

pub fn uif_pso_cds(&self) -> Result<Option<UserInteractionFlag>, Error>

Source

pub fn uif_pso_dec(&self) -> Result<Option<UserInteractionFlag>, Error>

Source

pub fn uif_pso_aut(&self) -> Result<Option<UserInteractionFlag>, Error>

Source

pub fn attestation_key_fingerprint(&self) -> Result<Option<Fingerprint>, Error>

Get Attestation key fingerprint.

Source

pub fn attestation_key_algorithm_attributes( &mut self, ) -> Result<Option<AlgorithmAttributes>, Error>

Get Attestation key algorithm attributes.

Source

pub fn attestation_key_generation_time( &self, ) -> Result<Option<KeyGenerationTime>, Error>

Get Attestation key generation time.

Source

pub fn uif_attestation(&self) -> Result<Option<UserInteractionFlag>, Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.