Class: JWT::ClaimsValidator Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt/claims_validator.rb

Overview

Deprecated.

Use ‘Claims.verify_payload!` directly instead.

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ClaimsValidator

Deprecated.

Use ‘Claims.verify_payload!` directly instead.

Returns a new instance of ClaimsValidator.



7
8
9
10
# File 'lib/jwt/claims_validator.rb', line 7

def initialize(payload)
  Deprecations.warning('The ::JWT::ClaimsValidator class is deprecated and will be removed in the next major version of ruby-jwt')
  @payload = payload
end

Instance Method Details

#validate!Object

Deprecated.

Use ‘Claims.verify_payload!` directly instead.



13
14
15
16
# File 'lib/jwt/claims_validator.rb', line 13

def validate!
  Claims.verify_payload!(@payload, :numeric)
  true
end