Apache Shiro · JSON Structure

Apache Shiro Token Response Structure

JWT or token-based authentication response

Type: object Properties: 4
AuthenticationAuthorizationCryptographyJavaSecurityApacheOpen Source

TokenResponse is a JSON Structure definition published by Apache Shiro, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

token tokenType expiresIn principal

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shiro/refs/heads/main/json-structure/apache-shiro-token-response-structure.json",
  "description": "JWT or token-based authentication response",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Authentication token"
    },
    "tokenType": {
      "type": "string",
      "description": "Token type (e.g. Bearer)"
    },
    "expiresIn": {
      "type": "int32",
      "description": "Token expiry in seconds"
    },
    "principal": {
      "type": "string",
      "description": "Authenticated principal"
    }
  },
  "name": "TokenResponse"
}