public class SecureString extends Object implements Destroyable
| Modifier and Type | Class and Description |
|---|---|
static interface |
SecureString.Accessor<T> |
static class |
SecureString.EncryptorFactory |
| Constructor and Description |
|---|
SecureString(char[] clearChars) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
access(SecureString.Accessor<T> accessor) |
protected void |
assertUndestroyed() |
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 assertUndestroyed()
public SecureString copy() throws CryptoException
CryptoExceptionCopyright © 2017. All rights reserved.