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 StringEncode aKeyin string form for storage as a database CLOB fieldprotected com.atlassian.security.auth.trustedapps.EncryptionProvidervoidsetAlgorithm(String algorithm) voidsetEncodedKey(String encodedKey) voidsetKeyType(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 aKeyin string form for storage as a database CLOB field- Parameters:
key- Opaque key- Returns:
- String encoded form
-
asCDataEncodedString
Yuck this makes me sick. -
CDatafyString
-