Class: Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::Jwt
- Inherits:
-
Object
- Object
- Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::Jwt
- Extended by:
- T::Sig
- Defined in:
- lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb
Overview
Jwt is a class that represents the JWT token configuration for the Document Server client.
Defined Under Namespace
Classes: Location
Instance Attribute Summary collapse
-
#header ⇒ String
readonly
header is the header name of the JWT token in the request.
-
#jwt ⇒ JwtEncoding
readonly
jwt is the JWT token encoding configuration.
-
#locations ⇒ Array<Location>
readonly
locations is the list of locations of the JWT token in the request.
-
#schema ⇒ String
readonly
schema is the schema of the JWT token in the request.
Instance Method Summary collapse
-
#initialize(jwt:, locations: [Location::Header, Location::Body], header: "Authorization", schema: "Bearer") ⇒ void
constructor
initialize initializes a new Jwt instance.
Constructor Details
#initialize(jwt:, locations: [Location::Header, Location::Body], header: "Authorization", schema: "Bearer") ⇒ void
initialize initializes a new Jwt instance. It makes a shallow copy of the locations list.
101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb', line 101 def initialize( jwt:, locations: [Location::Header, Location::Body], header: "Authorization", schema: "Bearer" ) @jwt = jwt @locations = T.let(locations.clone, T::Array[Location]) @header = header @schema = schema end |
Instance Attribute Details
#header ⇒ String (readonly)
header is the header name of the JWT token in the request.
71 72 73 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb', line 71 def header @header end |
#jwt ⇒ JwtEncoding (readonly)
jwt is the JWT token encoding configuration.
56 57 58 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb', line 56 def jwt @jwt end |
#locations ⇒ Array<Location> (readonly)
locations is the list of locations of the JWT token in the request.
62 63 64 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb', line 62 def locations @locations end |
#schema ⇒ String (readonly)
schema is the schema of the JWT token in the request.
80 81 82 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/jwt.rb', line 80 def schema @schema end |