lib/cerner/oauth1a/access_token.rb
def verify_expiration(expires_on)
        unless expires_on
          raise OAuthError.new('token missing ExpiresOn', nil, 'parameter_rejected', 'oauth_token', @realm)
        end

        expires_on = Internal.convert_to_time(time: expires_on, name: 'expires_on')
        now = Internal.convert_to_time(time: Time.now)

        raise OAuthError.new('token has expired', nil, 'token_expired', nil, @realm) if now.tv_sec >= expires_on.tv_sec
      end
# Internal: Used by #authenticate to verify the expiration time.
Used by #authenticate to verify the expiration time.
Used by #authenticate to verify the expiration time .
def verify_expiration(expires_on)
        unless expires_on
          raise OAuthError.new('token missing ExpiresOn', nil, 'parameter_rejected', 'oauth_token', @realm)
        end
        expires_on = Internal.convert_to_time(time: expires_on, name: 'expires_on')
        now = Internal.convert_to_time(time: Time.now)
        raise OAuthError.new('token has expired', nil, 'token_expired', nil, @realm) if now.tv_sec >= expires_on.tv_sec
      end
def verify_expiration ( expires_on ) unless expires_on raise OAuthError . new ( 'token missing ExpiresOn' , nil , 'parameter_rejected' , 'oauth_token' , @realm ) end expires_on = Internal . convert_to_time ( time : expires_on , name : 'expires_on' ) now = Internal . convert_to_time ( time : Time . now ) raise OAuthError . new ( 'token has expired' , nil , 'token_expired' , nil , @realm ) if now . tv_sec >= expires_on . tv_sec end
Internal: Used by #authenticate to verify the expiration time.
Internal : Used by #authenticate to verify the expiration time .
expires_on