Class: XSignature::NonceValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/x-signature/nonce_validator.rb

Direct Known Subclasses

RedisNonceValidator

Instance Method Summary collapse

Instance Method Details

#valid?(data) ⇒ Boolean

Some state should be maintained in order to protect API from replay attack en.wikipedia.org/wiki/Cryptographic_nonce



7
8
9
# File 'lib/x-signature/nonce_validator.rb', line 7

def valid?(data)
  fail NotImplementedError
end