package ai.sentryagent.idp.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Token introspection response (RFC 7662). */
@JsonIgnoreProperties(ignoreUnknown = true)
public final class IntrospectResponse {

    @JsonProperty("active")     private boolean active;
    @JsonProperty("sub")        private String sub;
    @JsonProperty("client_id")  private String clientId;
    @JsonProperty("scope")      private String scope;
    @JsonProperty("token_type") private String tokenType;
    @JsonProperty("iat")        private Long iat;
    @JsonProperty("exp")        private Long exp;

    public IntrospectResponse() {}

    public boolean isActive()    { return active; }
    public String getSub()       { return sub; }
    public String getClientId()  { return clientId; }
    public String getScope()     { return scope; }
    public String getTokenType() { return tokenType; }
    public Long getIat()         { return iat; }
    public Long getExp()         { return exp; }
}
