JwtLimits

zio.blocks.jwt.JwtLimits
See theJwtLimits companion object
final case class JwtLimits(maxTokenChars: Int = ..., maxSegmentChars: Int = ..., maxJsonChars: Int = ..., maxDepth: Int = ..., maxFields: Int = ..., maxArrayElements: Int = ...)

Conservative resource limits for JWT parsing and token validation.

All limits are checked before allocation where possible.

Value parameters

maxArrayElements

maximum number of elements in a single JSON array

maxDepth

maximum nesting depth for JSON objects/arrays (root is depth 1)

maxFields

maximum number of fields in a single JSON object

maxJsonChars

maximum length of decoded JSON (header or payload) in characters

maxSegmentChars

maximum length of a single Base64Url segment (header/payload/signature)

maxTokenChars

maximum total compact token length in characters

Attributes

Companion
object
Source
Jwt.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala