java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.KeyTransferBean
All Implemented Interfaces:
Serializable

public class KeyTransferBean extends Object implements Serializable
Allows conversion to and from serialized form.
See Also:
  • Field Details

  • Constructor Details

    • KeyTransferBean

      public KeyTransferBean(String asCData)
      This is really messy. This works assuming that there are not any spaces in the fields.
    • KeyTransferBean

      public KeyTransferBean(String type, String algorithm, String encodedKey)
      Parameters:
      encodedKey - the encoded key
      type - the key type
      algorithm - String denoting the crypto algorithm used
    • KeyTransferBean

      public KeyTransferBean(Key key)
  • Method Details

    • getKeyType

      public String getKeyType()
    • getAlgorithm

      public String getAlgorithm()
    • getEncodedKey

      public String getEncodedKey()
    • setKeyType

      public void setKeyType(String keyType)
    • setEncodedKey

      public void setEncodedKey(String encodedKey)
    • setAlgorithm

      public void setAlgorithm(String algorithm)
    • asKey

      public Key asKey()
    • getEncryptionProvider

      protected com.atlassian.security.auth.trustedapps.EncryptionProvider getEncryptionProvider()
    • encodeKey

      public String encodeKey(Key key)
      Encode a Key in string form for storage as a database CLOB field
      Parameters:
      key - Opaque key
      Returns:
      String encoded form
    • asCDataEncodedString

      public String asCDataEncodedString()
      Yuck this makes me sick.
    • CDatafyString

      public static String CDatafyString(String s)