Module: Onlyoffice::DocsIntegrationSdk::JwtEncoding 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.

JwtEncoding is an interface that describes methods that must be implemented to be considered a JWT encoder.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#encode(p) ⇒ String

This method is abstract.

Returns An encoded token.

Parameters:

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

    The payload to encode.

Returns:

  • (String) —

    An encoded token.

Since:

  • 0.1.0



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

def encode(p); end

#encode_body(p) ⇒ Hash{T.untyped => T.untyped}

This method is abstract.

Returns An encoded body.

Parameters:

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

    The payload to encode.

Returns:

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

    An encoded body.

Since:

  • 0.1.0



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

def encode_body(p); end

#encode_header(p) ⇒ String

This method is abstract.

Returns An encoded header.

Parameters:

  • p (T.untyped) —

    The payload to encode.

Returns:

  • (String) —

    An encoded header.

Since:

  • 0.1.0



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

def encode_header(p); end

#encode_uri(u) ⇒ URI::HTTP

This method is abstract.

Returns An encoded URI.

Parameters:

  • u (URI::HTTP) —

    The URI to encode.

Returns:

  • (URI::HTTP) —

    An encoded URI.

Since:

  • 0.1.0



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

def encode_uri(u); end