Interface KeySupplier<T>

  • Type Parameters:
    T - the type of the key that will be supplied
    All Known Implementing Classes:
    PEMFileRSAPrivateKeySupplier

    public interface KeySupplier<T>
    Interface for anything that can get supply a Key of type T given a keyId
    • Method Detail

      • supplyKey

        @Nonnull
        Optional<T> supplyKey​(@Nonnull
                              String keyId)
        Try to get a key for the given KeyId
        Parameters:
        keyId - the identifier of the key to try to supply
        Returns:
        an Optional for the key, or empty if the key cannot be found.