Class EncryptedWorkspace

java.lang.Object
com.structurizr.AbstractWorkspace
com.structurizr.encryption.EncryptedWorkspace

public final class EncryptedWorkspace extends com.structurizr.AbstractWorkspace
This is a wrapper around an existing workspace that has been encrypted.
  • Constructor Details

    • EncryptedWorkspace

      public EncryptedWorkspace(com.structurizr.Workspace workspace, EncryptionStrategy encryptionStrategy) throws Exception
      Creates an encrypted version of the specified workspace.
      Parameters:
      workspace - the Workspace to encrypt
      encryptionStrategy - the encryption strategy
      Throws:
      Exception - if an error occurs while creating the encrypted workspace
    • EncryptedWorkspace

      public EncryptedWorkspace(com.structurizr.Workspace workspace, String plaintext, EncryptionStrategy encryptionStrategy) throws Exception
      Throws:
      Exception
  • Method Details

    • getWorkspace

      public com.structurizr.Workspace getWorkspace() throws Exception
      Throws:
      Exception
    • getCiphertext

      public String getCiphertext()
    • setCiphertext

      public void setCiphertext(String ciphertext)
    • getPlaintext

      public String getPlaintext() throws Exception
      Throws:
      Exception
    • getEncryptionStrategy

      public EncryptionStrategy getEncryptionStrategy()
    • setEncryptionStrategy

      public void setEncryptionStrategy(EncryptionStrategy encryptionStrategy)