Class CryptoPolicyInfo

java.lang.Object
co.ankatech.ankasecure.sdk.model.CryptoPolicyInfo

public final class CryptoPolicyInfo extends Object
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.

  • 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

      public String currentKeyRequested()
    • currentKeyUsed

      public String currentKeyUsed()
    • currentKeyAlgorithm

      public String currentKeyAlgorithm()
    • currentKeyExpWarnDays

      public int currentKeyExpWarnDays()
    • currentKeyUsageWarn

      public int currentKeyUsageWarn()
    • newKeyRequested

      public String newKeyRequested()
    • newKeyUsed

      public String newKeyUsed()
    • newKeyAlgorithm

      public String newKeyAlgorithm()
    • newKeyExpWarnDays

      public int newKeyExpWarnDays()
    • newKeyUsageWarn

      public int newKeyUsageWarn()
    • migrationMode

      public boolean migrationMode()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object