package ai.sentryagent.idp.models;

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

/** A credential record (clientSecret is never included). */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Credential {

    @JsonProperty("credentialId") protected String credentialId;
    @JsonProperty("clientId")     protected String clientId;
    @JsonProperty("status")       protected String status;
    @JsonProperty("createdAt")    protected String createdAt;
    @JsonProperty("expiresAt")    protected String expiresAt;
    @JsonProperty("revokedAt")    protected String revokedAt;

    public Credential() {}

    public String getCredentialId() { return credentialId; }
    public String getClientId()     { return clientId; }
    public String getStatus()       { return status; }
    public String getCreatedAt()    { return createdAt; }
    public String getExpiresAt()    { return expiresAt; }
    public String getRevokedAt()    { return revokedAt; }

    @Override
    public String toString() {
        return "Credential{credentialId='" + credentialId + "', status='" + status + "'}";
    }
}
