public final class LoginLimits
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_AUTH_PAYLOAD_LENGTH
Longest auth payload (the chain or token JSON) in bytes.
|
static int |
MAX_CLIENT_JWT_LENGTH
Longest client data JWT in bytes, the same as the batch decompression limit.
|
static int |
MAX_JSON_DEPTH
Deepest nesting of objects and arrays in the auth payload.
|
static int |
MAX_JWT_HEADER_LENGTH
Longest encoded header of the client data JWT.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkJsonDepth(java.lang.CharSequence json) |
static void |
checkJwtHeader(java.lang.String jwt) |
static java.util.Map<java.lang.String,java.lang.Object> |
parseJson(java.lang.String json)
Parses auth payload JSON after checking its nesting depth.
|
static java.lang.String |
readAuthPayload(io.netty.buffer.ByteBuf buffer,
java.nio.charset.Charset charset) |
static java.lang.String |
readClientJwt(io.netty.buffer.ByteBuf buffer) |
public static final int MAX_AUTH_PAYLOAD_LENGTH
public static final int MAX_CLIENT_JWT_LENGTH
public static final int MAX_JSON_DEPTH
public static final int MAX_JWT_HEADER_LENGTH
public static java.lang.String readAuthPayload(io.netty.buffer.ByteBuf buffer,
java.nio.charset.Charset charset)
public static java.lang.String readClientJwt(io.netty.buffer.ByteBuf buffer)
public static java.util.Map<java.lang.String,java.lang.Object> parseJson(java.lang.String json)
throws org.jose4j.lang.JoseException
org.jose4j.lang.JoseExceptionpublic static void checkJsonDepth(java.lang.CharSequence json)
public static void checkJwtHeader(java.lang.String jwt)