|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.system.utility.CryptoUtility
public final class CryptoUtility
The Class CryptoUtility.
Field Summary | |
---|---|
protected static char[] |
key
Internal Key. |
Method Summary | |
---|---|
static java.lang.String |
decrypt(java.lang.String ciphertext)
Decrypts cipher text using the shared passphrase. |
static java.lang.String |
encrypt(java.lang.String cleartext)
Encrypts data. |
protected static javax.crypto.SecretKey |
getKey()
Gets the key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static char[] key
Method Detail |
---|
public static java.lang.String encrypt(java.lang.String cleartext)
cleartext
- the cleartext
java.security.GeneralSecurityException
- on an encryption errorpublic static java.lang.String decrypt(java.lang.String ciphertext)
ciphertext
- the ciphertext
protected static javax.crypto.SecretKey getKey() throws java.security.GeneralSecurityException
java.security.GeneralSecurityException
- the general security exception
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |