Class WrappedDekDetails

java.lang.Object
com.linecorp.centraldogma.server.storage.encryption.WrappedDekDetails

public final class WrappedDekDetails extends Object
Details of a wrapped data encryption key (DEK).
  • Constructor Details

    • WrappedDekDetails

      public WrappedDekDetails(String wrappedDek, int dekVersion, String kekId, String projectName, String repoName)
      Creates a new instance.
    • WrappedDekDetails

      public WrappedDekDetails(String wrappedDek, int dekVersion, String kekId, Instant creation, String projectName, String repoName)
      Creates a new instance.
  • Method Details

    • wrappedDek

      public String wrappedDek()
      Returns the wrapped data encryption key (DEK), encoded in Base64.
    • dekVersion

      public int dekVersion()
      Returns the version of the data encryption key (DEK).
    • kekId

      public String kekId()
      Returns the ID of the key encryption key (KEK) used to wrap the DEK.
    • creation

      public String creation()
      Returns the creation time of the wrapped DEK in ISO-8601 format.
    • creationInstant

      public Instant creationInstant()
      Returns the creation Instant of the wrapped DEK.
    • projectName

      public String projectName()
      Returns the project name associated with this wrapped DEK.
    • repoName

      public String repoName()
      Returns the repository name associated with this wrapped DEK.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object