Skip to main content

com.eruces.teagent.TEKey

The TEKey class provides operations for creating, exporting and importing keys.

Inheritance

Static Public Attributes

TypeNameDescription
intKEY_FORMAT_NATIVEAn integer representing Native format.
intKEY_FORMAT_SMIMEAn integer representing SMIME format.
intKEY_FORMAT_XMLAn integer representing XML format.
intKEY_FORMAT_RAWAn integer representing RAW format.

Public Member Functions

MemberDescription
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

ParameterDescription
trustedServerNameA string representing the trusted server's friendly name.
keysVector 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

ParameterDescription
keysVector of KeyPair objects. Input with TTag and encrypted key blobs. Try: Vector<TEKey.KeyPair> keys = new Vector<TEKey.KeyPair>()
typeAn 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

ParameterDescription
trustedServerNameA string representing the trusted server's friendly name.
hls[]Array of based 64 encoded TTag
typeXML=2 or SMIME=1

Returns: A formatted string of encrypted key blobs.

void importKey(String encryptedXML)

Import encryption keys packed inside XML.

Parameters

ParameterDescription
encryptedXMLencrypted XML

String createKey(String aclTemplateName)

The createKey method creates a new key with given ACL template name.

Parameters

ParameterDescription
aclTemplateNameA string representing the ACL template name.

Returns: Base64 encoded string of TTag