|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.odi.domain.util.ObfuscatedString
public final class ObfuscatedString
An obfuscated string.
ODI domain layer uses this class to model a string that is obfuscated. Typical obfuscated strings are passwords and credentials.
An instance of ObfuscatedString doesn't offer any additional method and primarily provides type safety and is a convenient holder for a string that is obfuscated.
| Method Summary | |
|---|---|
static ObfuscatedString |
obfuscate(char[] pStringToObfuscate)Creates an ObfuscatedString instance from the given not obfuscated password as a char array. |
static ObfuscatedString |
obfuscate(java.lang.String pStringToObfuscate)Deprecated. use obfuscate(char[]) instead for better security |
java.lang.String |
toString()Returns a String object representing this ObfuscatedString. |
static ObfuscatedString |
valueOf(java.lang.String pObfuscatedString)Creates an ObfuscatedString instance from the string standard representation as described in the toString() method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ObfuscatedString obfuscate(java.lang.String pStringToObfuscate)
obfuscate(char[]) instead for better securityObfuscatedString instance from the given not obfuscated string.
Note that the given string must not be null. In order to create an ObfuscatedString for an empty password, the empty string (i.e. "") must be used.
pStringToObfuscate - the string to obfuscateObfuscatedString instanceDomainRuntimeException - if the given string is nullpublic static ObfuscatedString obfuscate(char[] pStringToObfuscate)
ObfuscatedString instance from the given not obfuscated password as a char array.
Note that the given char array must not be null. In order to create an ObfuscatedString for an empty password, the empty string (i.e. "") must be used.
After calling this method the caller needs to make sure to reset all chars of the the passed in char array if it is sensitive info e.g. password.
pStringToObfuscate - the string to obfuscateObfuscatedString instanceDomainRuntimeException - if the given char array is nullpublic static ObfuscatedString valueOf(java.lang.String pObfuscatedString)
ObfuscatedString instance from the string standard representation as described in the toString() method.pObfuscatedString - the already obfuscated StringObfuscatedString holding the given obfuscated stringDomainRuntimeException - if the given string is nullpublic java.lang.String toString()
String object representing this ObfuscatedString.toString in class java.lang.ObjectObject.toString()
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||