Class ClearData

java.lang.Object
io.quarkus.vault.transit.ClearData

public class ClearData extends Object
Arbitrary unencrypted data that can be created from raw bytes, or a String, which will be encoded using StandardCharsets.UTF_8
  • Constructor Details

    • ClearData

      public ClearData(byte[] value)
      Create a ClearData from raw bytes
      Parameters:
      value - the unencrypted data to wrap
    • ClearData

      public ClearData(String value)
      Create a ClearData from a String, which will be encoded using StandardCharsets.UTF_8
      Parameters:
      value - the unencrypted data to wrap
  • Method Details

    • asString

      public String asString()
      Returns:
      a String representation of the unencrypted data created from raw bytes decoded using StandardCharsets.UTF_8
    • getValue

      public byte[] getValue()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object