File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/to/bitkit/domain/models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ private const val WIPE_CHAR = '\u0000'
77/* *
88 * A wrapper that stores sensitive data in a [CharArray] and provides APIs to safely wipe it from memory.
99 *
10- * Implements [CharSequence] so it can flow through internal APIs without materializing a [String].
10+ * Exposed as [CharSequence] so it can replace the need of using an immutable [String].
1111 * [toString] is intentionally redacted — use [peek] or [use] to access the underlying data.
1212 *
13- * ALWAYS access the wrapped value inside [use] blocks for auto cleanup.
13+ * PREFER unwrapping the value via [use] blocks for auto cleanup.
1414 */
1515class Secret internal constructor(initialValue : CharArray ) : CharSequence, AutoCloseable {
1616 companion object {
You can’t perform that action at this time.
0 commit comments