Class QKeyMaterial

java.lang.Object
com.kingsrook.qqq.backend.core.crypto.QKeyMaterial

public final class QKeyMaterial extends Object
A resolved key: its bytes, the id (the keyRef) that names it, and its version. The bytes are a defensive copy on the way in and on the way out, and toString never includes them.
  • Constructor Details

    • QKeyMaterial

      public QKeyMaterial(byte[] keyBytes, String keyId, String version)
      Constructor
  • Method Details

    • getKeyBytes

      public byte[] getKeyBytes()
      Getter for keyBytes (a copy)
    • getKeyId

      public String getKeyId()
      Getter for keyId
    • getVersion

      public String getVersion()
      Getter for version
    • toString

      public String toString()
      Never reveals key bytes.
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object