Struct xbe::cert::Certificate [−][src]
pub struct Certificate { /* fields omitted */ }
A certificate included in an XBE image.
The certificate contains various information about the game (such as its title, region and ratings), as well as a few signing keys.
Returned by Header::cert
.
Methods
impl Certificate
[src]
impl Certificate
pub fn creation_time(&self) -> &SystemTime
[src]
pub fn creation_time(&self) -> &SystemTime
Returns the time at which this certificate was created.
pub fn title_name(&self) -> &str
[src]
pub fn title_name(&self) -> &str
pub fn title_id(&self) -> u32
[src]
pub fn title_id(&self) -> u32
Returns the primary title ID of the game.
For homebrew, this might be 0.
pub fn alt_title_ids(&self) -> &[u32; 16]
[src]
pub fn alt_title_ids(&self) -> &[u32; 16]
Returns the alternate title IDs of the game.
Likely, not all of these are used, with the rest being set to 0.
pub fn allowed_media(&self) -> &MediaTypes
[src]
pub fn allowed_media(&self) -> &MediaTypes
Bit flags indicating the allowed media types for distribution of the game.
pub fn game_region(&self) -> &GameRegion
[src]
pub fn game_region(&self) -> &GameRegion
Bit flags of regions in which this game is available.
pub fn disk_number(&self) -> u32
[src]
pub fn disk_number(&self) -> u32
Disk this certificate was created for. Likely 0.
pub fn version(&self) -> u32
[src]
pub fn version(&self) -> u32
Certificate version / revision.
pub fn lan_key(&self) -> &Key
[src]
pub fn lan_key(&self) -> &Key
pub fn signature_key(&self) -> &Key
[src]
pub fn signature_key(&self) -> &Key
pub fn alt_signature_keys(&self) -> &[Key; 16]
[src]
pub fn alt_signature_keys(&self) -> &[Key; 16]
Trait Implementations
impl Debug for Certificate
[src]
impl Debug for Certificate
Auto Trait Implementations
impl Send for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Sync for Certificate