Destroyablepublic class SecureString extends Object implements Destroyable
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
SecureString.Accessor<T> |
|
static class |
SecureString.EncryptorFactory |
| Constructor | Description |
|---|---|
SecureString(char[] clearChars) |
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
access(SecureString.Accessor<T> accessor) |
|
protected void |
assertNotDestroyed() |
|
SecureString |
copy() |
|
void |
destroy() |
|
boolean |
isDestroyed() |
public SecureString(char[] clearChars)
throws CryptoException
CryptoExceptionpublic <T> T access(SecureString.Accessor<T> accessor) throws CryptoException
CryptoExceptionpublic void destroy()
throws DestroyFailedException
destroy in interface DestroyableDestroyFailedExceptionpublic boolean isDestroyed()
isDestroyed in interface Destroyableprotected void assertNotDestroyed()
public SecureString copy() throws CryptoException
CryptoExceptionCopyright © 2018. All rights reserved.