Interface KeyringUnlockProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies a fresh destroyable password for one keyring open operation.
Ownership of the returned object transfers to the receiver, which must
destroy it in a finally block immediately after the keyring has been
opened. Implementations must not source passwords from immutable strings,
process arguments, system properties, environment fallbacks, persistent
files, or global mutable state.
-
Method Summary
-
Method Details
-
acquire
Supplies unlock material for one operation.- Returns:
- a fresh password owner whose ownership transfers to the receiver
- Throws:
IOException- if unlock material cannot be supplied
-