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
impl ApplicationRelatedData
Sourcepub fn application_id(&self) -> Result<ApplicationIdentifier, Error>
pub fn application_id(&self) -> Result<ApplicationIdentifier, Error>
Get application identifier (AID), ISO 7816-4
Sourcepub fn historical_bytes(&self) -> Result<HistoricalBytes, Error>
pub fn historical_bytes(&self) -> Result<HistoricalBytes, Error>
Get historical bytes
Sourcepub fn extended_length_information(
&self,
) -> Result<Option<ExtendedLengthInfo>, Error>
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.
Sourcepub fn extended_capabilities(&self) -> Result<ExtendedCapabilities, Error>
pub fn extended_capabilities(&self) -> Result<ExtendedCapabilities, Error>
Get extended Capabilities
Sourcepub fn algorithm_attributes(
&self,
key_type: KeyType,
) -> Result<AlgorithmAttributes, Error>
pub fn algorithm_attributes( &self, key_type: KeyType, ) -> Result<AlgorithmAttributes, Error>
Get algorithm attributes (for each key type)
Sourcepub fn pw_status_bytes(&self) -> Result<PWStatusBytes, Error>
pub fn pw_status_bytes(&self) -> Result<PWStatusBytes, Error>
Get PW status Bytes
Sourcepub fn fingerprints(&self) -> Result<KeySet<Fingerprint>, Error>
pub fn fingerprints(&self) -> Result<KeySet<Fingerprint>, Error>
Fingerprint, per key type. Zero bytes indicate a not defined private key.
pub fn ca_fingerprints(&self) -> Result<[Option<Fingerprint>; 3], Error>
Sourcepub fn key_generation_times(&self) -> Result<KeySet<KeyGenerationTime>, Error>
pub fn key_generation_times(&self) -> Result<KeySet<KeyGenerationTime>, Error>
Generation dates/times of key pairs
pub fn key_information(&self) -> Result<Option<KeyInformation>, Error>
pub fn uif_pso_cds(&self) -> Result<Option<UserInteractionFlag>, Error>
pub fn uif_pso_dec(&self) -> Result<Option<UserInteractionFlag>, Error>
pub fn uif_pso_aut(&self) -> Result<Option<UserInteractionFlag>, Error>
Sourcepub fn attestation_key_fingerprint(&self) -> Result<Option<Fingerprint>, Error>
pub fn attestation_key_fingerprint(&self) -> Result<Option<Fingerprint>, Error>
Get Attestation key fingerprint.
Sourcepub fn attestation_key_algorithm_attributes(
&mut self,
) -> Result<Option<AlgorithmAttributes>, Error>
pub fn attestation_key_algorithm_attributes( &mut self, ) -> Result<Option<AlgorithmAttributes>, Error>
Get Attestation key algorithm attributes.
Sourcepub fn attestation_key_generation_time(
&self,
) -> Result<Option<KeyGenerationTime>, Error>
pub fn attestation_key_generation_time( &self, ) -> Result<Option<KeyGenerationTime>, Error>
Get Attestation key generation time.