public class KeyTransferBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_PRIVATE |
static String |
TYPE_PUBLIC |
Constructor and Description |
---|
KeyTransferBean(Key key) |
KeyTransferBean(String asCData)
This is really messy.
|
KeyTransferBean(String type,
String algorithm,
String encodedKey) |
Modifier and Type | Method and Description |
---|---|
String |
asCDataEncodedString()
Yuck this makes me sick.
|
Key |
asKey() |
static String |
CDatafyString(String s) |
String |
encodeKey(Key key)
Encode a
Key in string form for storage as a database CLOB field |
String |
getAlgorithm() |
String |
getEncodedKey() |
protected com.atlassian.security.auth.trustedapps.EncryptionProvider |
getEncryptionProvider() |
String |
getKeyType() |
void |
setAlgorithm(String algorithm) |
void |
setEncodedKey(String encodedKey) |
void |
setKeyType(String keyType) |
public static final String TYPE_PRIVATE
public static final String TYPE_PUBLIC
public KeyTransferBean(String asCData)
public KeyTransferBean(String type, String algorithm, String encodedKey)
encodedKey
- the encoded keytype
- the key typealgorithm
- String denoting the crypto algorithm usedpublic KeyTransferBean(Key key)
public String getKeyType()
public String getAlgorithm()
public String getEncodedKey()
public void setKeyType(String keyType)
public void setEncodedKey(String encodedKey)
public void setAlgorithm(String algorithm)
public Key asKey()
protected com.atlassian.security.auth.trustedapps.EncryptionProvider getEncryptionProvider()
public String encodeKey(Key key)
Key
in string form for storage as a database CLOB fieldkey
- Opaque keypublic String asCDataEncodedString()
Copyright © 2003–2017 Atlassian. All rights reserved.