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)


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

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)


215
216
217
# File 'sig/types.rbs', line 215

def algorithm
  @algorithm
end

#audienceArray[String] (readonly)

Returns the value of attribute audience.

Returns:

  • (Array[String])


216
217
218
# File 'sig/types.rbs', line 216

def audience
  @audience
end

#issuerString (readonly)

Returns the value of attribute issuer.

Returns:

  • (String)


217
218
219
# File 'sig/types.rbs', line 217

def issuer
  @issuer
end

#leewayInteger (readonly)

Returns the value of attribute leeway.

Returns:

  • (Integer)


218
219
220
# File 'sig/types.rbs', line 218

def leeway
  @leeway
end

#secretString (readonly)

Returns the value of attribute secret.

Returns:

  • (String)


214
215
216
# File 'sig/types.rbs', line 214

def secret
  @secret
end