package cn.qihangerp.security.external;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "external.auth")
public class ExternalAkSkProperties {
    /**
     * External system API Key (AK)
     */
    private String apiKey;

    /**
     * External system secret (SK)
     */
    private String secretKey;

    /**
     * Timestamp tolerance in milliseconds.
     */
    private long timestampSkewMs = 300_000L;

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public long getTimestampSkewMs() {
        return timestampSkewMs;
    }

    public void setTimestampSkewMs(long timestampSkewMs) {
        this.timestampSkewMs = timestampSkewMs;
    }
}

