Package de.frankmuenster.mahoe.utils
Class SecureCharSequence
java.lang.Object
de.frankmuenster.mahoe.utils.SecureCharSequence
- All Implemented Interfaces:
CharSequence
- Author:
- Frank Münster
-
Constructor Summary
ConstructorsConstructorDescriptionSecureCharSequence(char[] value) Returns a new SecureCharSequence initialised with the given char array. -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intlength()subSequence(int start, int end) toString()voidwipe()Wipes the internally used variable to store the char sequenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
SecureCharSequence
public SecureCharSequence(char[] value) Returns a new SecureCharSequence initialised with the given char array.- Parameters:
value- the charter array to be used for this secureCharSequence
-
-
Method Details
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
wipe
public void wipe()Wipes the internally used variable to store the char sequence
-