Class EncryptedWorkspace


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCiphertext()  
      EncryptionStrategy getEncryptionStrategy()  
      java.lang.String getPlaintext()  
      com.structurizr.Workspace getWorkspace()  
      void setCiphertext​(java.lang.String ciphertext)  
      void setEncryptionStrategy​(EncryptionStrategy encryptionStrategy)  
      • Methods inherited from class com.structurizr.AbstractWorkspace

        addProperty, clearConfiguration, getConfiguration, getDescription, getId, getLastModifiedAgent, getLastModifiedDate, getLastModifiedUser, getName, getProperties, getRevision, getThumbnail, getVersion, setConfiguration, setDescription, setId, setLastModifiedAgent, setLastModifiedDate, setLastModifiedUser, setName, setRevision, setThumbnail, setVersion
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncryptedWorkspace

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

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

      • getWorkspace

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

        public java.lang.String getCiphertext()
      • setCiphertext

        public void setCiphertext​(java.lang.String ciphertext)
      • getPlaintext

        public java.lang.String getPlaintext()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setEncryptionStrategy

        public void setEncryptionStrategy​(EncryptionStrategy encryptionStrategy)