Module: Onlyoffice::DocsIntegrationSdk::JwtDecoding Abstract

Extended by:
T::Helpers, T::Sig
Included in:
JwtCoding
Defined in:
lib/onlyoffice/docs_integration_sdk/jwt.rb

Overview

This module is abstract.

Subclasses must implement the abstract methods below.

JwtDecoding is an interface that describes methods that must be implemented to be considered a JWT decoder.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#decode(t) ⇒ Hash{T.untyped => T.untyped}

This method is abstract.

Returns A decoded token.

Parameters:

  • t (String) —

    The token to decode.

Returns:

  • (Hash{T.untyped => T.untyped}) —

    A decoded token.

Since:

  • 0.1.0



92
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 92

def decode(t); end

#decode_body(b) ⇒ Hash{T.untyped => T.untyped}

This method is abstract.

Returns A decoded body.

Parameters:

  • b (Hash{T.untyped => T.untyped}) —

    The body to decode.

Returns:

  • (Hash{T.untyped => T.untyped}) —

    A decoded body.

Since:

  • 0.1.0



86
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 86

def decode_body(b); end

#decode_header(h) ⇒ T.untyped

This method is abstract.

Returns A decoded header.

Parameters:

  • h (String) —

    The header to decode.

Returns:

  • (T.untyped) —

    A decoded header.

Since:

  • 0.1.0



80
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 80

def decode_header(h); end

#decode_uri(u) ⇒ URI::HTTP

This method is abstract.

Returns A decoded URI.

Parameters:

  • u (URI::HTTP) —

    The URI to decode.

Returns:

  • (URI::HTTP) —

    A decoded URI.

Since:

  • 0.1.0



74
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 74

def decode_uri(u); end