public static interface Pem.Passphrase
Holds a passphrase using a try-with-resources model to assure the passphrase plain-text is erased once it has been used
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Must erase the contents of the passphrase
|
<T> T |
map(Function<char[],T> mapper)
Map the passphrase to an instance of the desired type
|
static Pem.Passphrase |
none()
An instance that represents the absence of a passphrase
|
static Pem.Passphrase |
of(char[] content)
Produce a Passphrase for the specified character array.
|
static Pem.Passphrase none()
An instance that represents the absence of a passphrase
static Pem.Passphrase of(char[] content)
Produce a Passphrase for the specified character array. The caller is responsible for erasing the contents of the supplied array.
content - The passphrasevoid close()
Must erase the contents of the passphrase
<T> T map(Function<char[],T> mapper)
Map the passphrase to an instance of the desired type
T - The instance typemapper - The mapping functionCopyright © 2016–2024. All rights reserved.