Method: CTAPI::Card#structure

Defined in:
lib/ctapi.rb

#structureObject

The structure of this chipcard.



484
485
486
487
488
489
490
491
492
493
494
# File 'lib/ctapi.rb', line 484

def structure
  if (@atr[0] & 0x3) == 0
    'ISO'
  elsif (@atr[0] & 0x7) == 2
    'common use'
  elsif (@atr[0] & 0x7) == 6
    'proprietary use'
  else
    'special use'
  end
end