package ai.sentryagent.idp.models;

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

/**
 * Credential with a one-time plaintext clientSecret.
 * Returned only on credential creation and rotation.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public final class CredentialWithSecret extends Credential {

    @JsonProperty("clientSecret") private String clientSecret;

    public CredentialWithSecret() {}

    /** The one-time plaintext secret. Store it securely; it is never shown again. */
    public String getClientSecret() { return clientSecret; }
}
