public class VistaKernelHash
extends java.lang.Object
For example:
String encodedString = VistaKernelHash.encrypt("some text to encode", true);
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decrypt(java.lang.String encryptedText)
Decrypts a string using the same encoding algorithm as the RPC Broker uses.
|
static java.lang.String |
encrypt(java.lang.String normalText,
boolean preventEncryptionsContainingCDataSectionBoundaries)
Encrypts a string using the same encoding algorithm as the RPC Broker uses.
|
public static java.lang.String encrypt(java.lang.String normalText, boolean preventEncryptionsContainingCDataSectionBoundaries) throws VistaKernelHashCountLimitExceededException
normalText
- the text to encode. Must be characters between ASCII 32 and 128.preventEncryptionsContainingCDataSectionBoundaries
- if true, the returned encrypted strings are guaranteed
not to contain either "]]>" or "<![CDATA[". Otherwise, it is possible a returned encryption may
contain those character sequences.VistaKernelHashCountLimitExceededException
- if requested that the method not return a result with CData
section boundaries, and if the algorithm runs up to a count limit (presently 2000 tries) without
generating a result without such boundaries, an exception is thrown.java.security.NoSuchAlgorithmException
public static java.lang.String decrypt(java.lang.String encryptedText)
encryptedText
- The text to decode. Must be characters between ASCII 32 and 128.VistALink v1.6a