Integration Server 10.3 | Built-In Services Reference Guide | Security Folder | Summary of Elements in this Folder | pub.security.util:createSecureString
 
pub.security.util:createSecureString
WmPublic. Creates a WmSecureString object from either a Java String, byte array, or character array.
WmSecureString is a mutable alternative to Java String. It allows the characters in the string to be explicitly removed from memory. Any password you wish to store in the Integration Server's outbound password store must be converted to a WmSecureString.
Input Parameters
string
String Java String to made into a WmSecureString.
bytes
byte[ ] Byte array to be made into a WmSecureString.
chars
char[ ] Character array to be made into a WmSecureString.
encoding
String If a byte array is supplied as an input parameter, encoding specifies the Java encoding of the byte array. This may be any encoding supported by Java String. By default, if no encoding is specified, then the default JVM encoding is used.
Output Parameters
secureString
WmSecureString WmSecureString created from the supplied input parameters.
Usage Notes
Only one of the input parameters (i.e. string, bytes, or chars) may be specified. If more than one is specified, an exception will be thrown. An exception is also thrown if none of these is specified.