Class CryptoKeyData

java.lang.Object
com.bld.crypto.bean.CryptoKeyData

public class CryptoKeyData extends Object
Data transfer object that carries the key name and the URL-encoding flag used by serializers and deserializers to locate the correct cryptographic key and to decide whether the encrypted payload must be further Base64-encoded for safe embedding in a URL.
  • Constructor Details

    • CryptoKeyData

      public CryptoKeyData(String name, boolean url)
      Constructs a new CryptoKeyData instance.
      Parameters:
      name - the logical name of the cryptographic key
      url - true if the encrypted value should be URL-safe Base64-encoded
  • Method Details

    • getName

      public String getName()
      Returns the logical name of the cryptographic key.
      Returns:
      the key name
    • isUrl

      public boolean isUrl()
      Returns whether the encrypted value must be URL-safe Base64-encoded.
      Returns:
      true if URL-encoding is required, false otherwise