Skip to content

Commit 425bdcb

Browse files
committed
chore: cleanup
1 parent af3352e commit 425bdcb

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/to/bitkit/domain/models

1 file changed

+2
-2
lines changed

app/src/main/java/to/bitkit/domain/models/Secret.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
1515
class Secret internal constructor(initialValue: CharArray) : CharSequence, AutoCloseable {
1616
companion object {

0 commit comments

Comments
 (0)