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 TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int start, int end) toString()
void
wipe()
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, wait
Methods 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:
charAt
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
wipe
public void wipe()Wipes the internally used variable to store the char sequence
-