Package oracle.nosql.driver.iam.pki
Interface Pem.Passphrase
- All Superinterfaces:
AutoCloseable
- Enclosing class:
- Pem
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
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Must erase the contents of the passphrase<T> TMap the passphrase to an instance of the desired typestatic Pem.Passphrasenone()An instance that represents the absence of a passphrasestatic Pem.Passphraseof(char[] content) Produce a Passphrase for the specified character array.
-
Method Details
-
none
An instance that represents the absence of a passphrase- Returns:
- Passphrase instance
-
of
Produce a Passphrase for the specified character array. The caller is responsible for erasing the contents of the supplied array.- Parameters:
content- The passphrase- Returns:
- Passphrase instance
-
close
void close()Must erase the contents of the passphrase- Specified by:
closein interfaceAutoCloseable
-
map
Map the passphrase to an instance of the desired type- Type Parameters:
T- The instance type- Parameters:
mapper- The mapping function- Returns:
- The mapped instance
-