Class KeyTransferBean
java.lang.Object
com.atlassian.confluence.security.persistence.dao.hibernate.KeyTransferBean
- All Implemented Interfaces:
Serializable
Allows conversion to and from serialized form.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyTransferBean
(String asCData) This is really messy.KeyTransferBean
(String type, String algorithm, String encodedKey) KeyTransferBean
(Key key) -
Method Summary
Modifier and TypeMethodDescriptionYuck this makes me sick.asKey()
static String
Encode aKey
in string form for storage as a database CLOB fieldprotected com.atlassian.security.auth.trustedapps.EncryptionProvider
void
setAlgorithm
(String algorithm) void
setEncodedKey
(String encodedKey) void
setKeyType
(String keyType)
-
Field Details
-
TYPE_PRIVATE
- See Also:
-
TYPE_PUBLIC
- See Also:
-
-
Constructor Details
-
KeyTransferBean
This is really messy. This works assuming that there are not any spaces in the fields. -
KeyTransferBean
- Parameters:
encodedKey
- the encoded keytype
- the key typealgorithm
- String denoting the crypto algorithm used
-
KeyTransferBean
-
-
Method Details
-
getKeyType
-
getAlgorithm
-
getEncodedKey
-
setKeyType
-
setEncodedKey
-
setAlgorithm
-
asKey
-
getEncryptionProvider
protected com.atlassian.security.auth.trustedapps.EncryptionProvider getEncryptionProvider() -
encodeKey
Encode aKey
in string form for storage as a database CLOB field- Parameters:
key
- Opaque key- Returns:
- String encoded form
-
asCDataEncodedString
Yuck this makes me sick. -
CDatafyString
-