FileControlParameter

public struct FileControlParameter : CardItemType

Undocumented

  • Describes the LifeCycle state of an EF/DF according to the ISO/IEC 7816-4:2005(E) #5.3.3.2 Life cycle status byte.

    b8 b7 b6 b5 b4 b3 b2 b1 meaning
    0 0 0 0 0 0 0 0 No information given
    0 0 0 0 0 0 0 1 Created
    0 0 0 0 0 0 1 1 Initialized
    0 0 0 0 0 1 - 1 Active
    0 0 0 0 0 1 - 0 Deactivated
    0 0 0 0 1 1 - - Terminated
    not all zero x x x x Proprietary
    See more

    Declaration

    Swift

    public enum LifeCycleState : Equatable
  • tag

    Undocumented

    Declaration

    Swift

    public static let tag: UInt
  • Tag

    Undocumented

    See more

    Declaration

    Swift

    public enum Tag : UInt
  • Undocumented

    Declaration

    Swift

    public let status: LifeCycleState
  • Max File size (numberOfOctets gemSpec_COS#N014.000)

    Declaration

    Swift

    public let size: UInt
  • File size (positionLogicalEndOfFile gemSpec_COS#N014.700)

    Declaration

    Swift

    public let readSize: UInt?
  • Hex String

    Declaration

    Swift

    public let fileDescriptor: String?
  • Undocumented

    Declaration

    Swift

    public let fileIdentifier: FileIdentifier?
  • Undocumented

    Declaration

    Swift

    public let applicationIdentifier: ApplicationIdentifier?
  • Undocumented

    Declaration

    Swift

    public let shortFileIdentifier: ShortFileIdentifier?
  • Undocumented

    Declaration

    Swift

    public init(status: LifeCycleState, size: UInt, fileDescriptor: String?, fid: FileIdentifier?,
                aid: ApplicationIdentifier?, shortFid: ShortFileIdentifier?, readSize: UInt?)
  • Undocumented

    See more

    Declaration

    Swift

    public enum Error : Swift.Error, Equatable
  • Parse FCP (File Control Parameter) from ASN.1 formatted Data

    Throws

    FileControlParameter.Error when ASN.1 parsing fails

    Declaration

    Swift

    public static func parse(data: Data) throws -> FileControlParameter

    Parameters

    data

    ASN.1 encoded data

    Return Value

    FCP

  • Declaration

    Swift

    public var debugDescription: String { get }
  • Declaration

    Swift

    public var description: String { get }