com.eruces.teagent.TEKey
The TEKey class provides operations for creating, exporting and importing keys.
Inheritance
- Inherits com.eruces.teagent.IConnection
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| int | KEY_FORMAT_NATIVE | An integer representing Native format. |
| int | KEY_FORMAT_SMIME | An integer representing SMIME format. |
| int | KEY_FORMAT_XML | An integer representing XML format. |
| int | KEY_FORMAT_RAW | An integer representing RAW format. |
Public Member Functions
| Member | Description |
|---|---|
TEKey() | The TEKey constructor is the default constructor. |
void exportKey(String trustedServerName, Vector< TEKey.KeyPair > keys) | The exportKey Method is for exporting encryption keys in a vector of KeyPair objects for given trusted key server. |
void importKey(Vector< TEKey.KeyPair > keys, int type) | The importKey Method is for importing enryption keys in native format. |
String exportKey(String trustedServerName, String hls[], int type) | The exportKey Method is for exporting encryption keys into a formatted string,. |
void importKey(String encryptedXML) | Import encryption keys packed inside XML. |
String createKey(String aclTemplateName) | The createKey method creates a new key with given ACL template name. |
Member Function Documentation
TEKey()
The TEKey constructor is the default constructor.
void exportKey(String trustedServerName, Vector< TEKey.KeyPair > keys)
The exportKey Method is for exporting encryption keys in a vector of KeyPair objects for given trusted key server.
Parameters
| Parameter | Description |
|---|---|
trustedServerName | A string representing the trusted server's friendly name. |
keys | Vector of KeyPair objects. Input with TTag and output with encrypted key blobs. Try: Vector<TEKey.KeyPair> keys = new Vector<TEKey.KeyPair>() |
void importKey(Vector< TEKey.KeyPair > keys, int type)
The importKey Method is for importing enryption keys in native format.
Parameters
| Parameter | Description |
|---|---|
keys | Vector of KeyPair objects. Input with TTag and encrypted key blobs. Try: Vector<TEKey.KeyPair> keys = new Vector<TEKey.KeyPair>() |
type | An integer representing the format type. NATIVE=0 only supported at this time |
String exportKey(String trustedServerName, String hls[], int type)
The exportKey Method is for exporting encryption keys into a formatted string,.
Parameters
| Parameter | Description |
|---|---|
trustedServerName | A string representing the trusted server's friendly name. |
hls[] | Array of based 64 encoded TTag |
type | XML=2 or SMIME=1 |
Returns: A formatted string of encrypted key blobs.
void importKey(String encryptedXML)
Import encryption keys packed inside XML.
Parameters
| Parameter | Description |
|---|---|
encryptedXML | encrypted XML |
String createKey(String aclTemplateName)
The createKey method creates a new key with given ACL template name.
Parameters
| Parameter | Description |
|---|---|
aclTemplateName | A string representing the ACL template name. |
Returns: Base64 encoded string of TTag