Class: Spikard::JwtConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJwtConfig

Returns a new instance of JwtConfig.

Parameters:

  • secret: (String)
  • algorithm: (String)
  • audience: (Array[String])
  • issuer: (String)
  • leeway: (Integer)


204
# File 'sig/types.rbs', line 204

def initialize: (secret: String, algorithm: String, ?audience: Array[String], ?issuer: String, leeway: Integer) -> void

Instance Attribute Details

#algorithmString (readonly)

Returns the value of attribute algorithm.

Returns:

  • (String)


199
200
201
# File 'sig/types.rbs', line 199

def algorithm
  @algorithm
end

#audienceArray[String] (readonly)

Returns the value of attribute audience.

Returns:

  • (Array[String])


200
201
202
# File 'sig/types.rbs', line 200

def audience
  @audience
end

#issuerString (readonly)

Returns the value of attribute issuer.

Returns:

  • (String)


201
202
203
# File 'sig/types.rbs', line 201

def issuer
  @issuer
end

#leewayInteger (readonly)

Returns the value of attribute leeway.

Returns:

  • (Integer)


202
203
204
# File 'sig/types.rbs', line 202

def leeway
  @leeway
end

#secretString (readonly)

Returns the value of attribute secret.

Returns:

  • (String)


198
199
200
# File 'sig/types.rbs', line 198

def secret
  @secret
end