|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fccsc.manager.crypto.MessageCryptography
Constructor Summary | |
MessageCryptography()
|
Method Summary | |
static CryptoData |
decrypt(byte[] p_data)
Decrypts a message using the private key and pass phrase. |
static byte[] |
decryptWithSessionKey(byte[] p_data,
byte[] p_sessionKey)
Decrypts a message using a session key. |
static CryptoData |
encrypt(java.lang.String p_data)
Encrypts a message using a certificate. |
static byte[] |
encryptWithSessionKey(byte[] p_data,
byte[] p_sessionKey)
Encrypts a message using a session key. |
static void |
init(java.util.Properties p_property)
Initializes configuration information. |
static void |
init(java.lang.String p_pathCertificate,
java.lang.String p_pathPrivateKey,
java.lang.String p_pathPassPhrase)
Initializes configuration information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageCryptography()
Method Detail |
public static void init(java.util.Properties p_property)
p_property
- a properties object.public static void init(java.lang.String p_pathCertificate, java.lang.String p_pathPrivateKey, java.lang.String p_pathPassPhrase)
p_pathCertificate
- a file path to the certifcate.p_pathPrivateKey
- a file path to the private key.p_pathPassPhrase
- a file path to the encrypted pass phrase.public static CryptoData encrypt(java.lang.String p_data)
p_data
- the data to encrypt.
public static byte[] encryptWithSessionKey(byte[] p_data, byte[] p_sessionKey)
p_data
- the data to encrypt.p_sessionKey
- the session key.
public static CryptoData decrypt(byte[] p_data)
p_data
- the data to decrypt.
public static byte[] decryptWithSessionKey(byte[] p_data, byte[] p_sessionKey)
p_data
- the data to decrypt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |