File: registration.rb

package info (click to toggle)
ruby-u2f 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ruby: 727; makefile: 12
file content (16 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module U2F
  ##
  # A representation of a registered U2F device
  class Registration
    attr_accessor :key_handle, :public_key, :certificate, :counter
    def initialize(key_handle, public_key, certificate)
      @key_handle = key_handle
      @public_key = public_key
      @certificate = certificate
    end

    def counter
      @counter.nil? ? 0 : @counter
    end
  end
end