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.

@FunctionalInterface public interface KeyringUnlockProvider
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

    Modifier and Type
    Method
    Description
    Supplies unlock material for one operation.
  • Method Details

    • acquire

      KeyringPassword acquire() throws IOException
      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