Class CryptoPolicyInfo
java.lang.Object
co.ankatech.ankasecure.sdk.model.CryptoPolicyInfo
Immutable representation of the
Crypto-Policy-Info response header.
The header value is a Base64URL-encoded JSON document written in
snake_case. With the SDK-level
PropertyNamingStrategies.SNAKE_CASE configuration every JSON field
maps automatically to its Java counterpart; the explicit
@JsonProperty annotations below document the binding contract and
are used by the canonical constructor.
Only the definitive field names are supported
(current_* / new_* / migration_mode). Any additional or
misspelled property in the header causes Jackson to raise an
UnrecognizedPropertyException, enforcing strict protocol
compliance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder that mirrors the legacy API, preserving existing unit tests and client code. -
Constructor Summary
ConstructorsConstructorDescriptionCryptoPolicyInfo(String currentKeyRequested, String currentKeyUsed, String currentKeyAlgorithm, int currentKeyExpWarnDays, int currentKeyUsageWarn, String newKeyRequested, String newKeyUsed, String newKeyAlgorithm, int newKeyExpWarnDays, int newKeyUsageWarn, boolean migrationMode) Constructs an instance from the JSON-mapped fields. -
Method Summary
-
Constructor Details
-
CryptoPolicyInfo
public CryptoPolicyInfo(String currentKeyRequested, String currentKeyUsed, String currentKeyAlgorithm, int currentKeyExpWarnDays, int currentKeyUsageWarn, String newKeyRequested, String newKeyUsed, String newKeyAlgorithm, int newKeyExpWarnDays, int newKeyUsageWarn, boolean migrationMode) Constructs an instance from the JSON-mapped fields. Jackson invokes this constructor during deserialisation.
-
-
Method Details
-
currentKeyRequested
-
currentKeyUsed
-
currentKeyAlgorithm
-
currentKeyExpWarnDays
public int currentKeyExpWarnDays() -
currentKeyUsageWarn
public int currentKeyUsageWarn() -
newKeyRequested
-
newKeyUsed
-
newKeyAlgorithm
-
newKeyExpWarnDays
public int newKeyExpWarnDays() -
newKeyUsageWarn
public int newKeyUsageWarn() -
migrationMode
public boolean migrationMode() -
hashCode
-
equals
-
toString
-