package org.apereo.cas.support.oauth.web.response.introspection;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * This is {@link OAuth20IntrospectionAccessTokenResponse}.
 *
 * @author Misagh Moayyed
 * @since 6.0.0
 */
@Getter
@Setter
public class OAuth20IntrospectionAccessTokenResponse {
    private String token;
    
    private boolean active;

    private String sub;

    private String scope;

    private long iat;

    private long exp;

    private String realmName;

    private String uniqueSecurityName;

    private String tokenType;

    private String aud;

    private String iss;

    @JsonProperty("client_id")
    private String clientId;

    @JsonProperty("grant_type")
    private String grantType;
}

@@ -59,16 +59,69 @@
 ction;%0A%0A
+import com.fasterxml.jackson.annotation.JsonInclude;%0A
 import c
@@ -421,20 +421,61 @@
  token;%0A
+%0A
     
+@JsonInclude(JsonInclude.Include.ALWAYS)
 %0A    pri

add tests for oauth introspection with invalid token