Interface Pkcs11ObjectProvider<T>

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 Pkcs11ObjectProvider<T>
A functional interface for getting a reference to an object residing on a PKCS#11 device.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Provider provider, String alias, char[] pin)
    Gets a reference to an object residing on the PKCS#11 device.
  • Method Details

    • get

      T get(Provider provider, String alias, char[] pin) throws SecurityException
      Gets a reference to an object residing on the PKCS#11 device.
      Parameters:
      provider - the security provider to use
      alias - the alias to the entry holding the object
      pin - the PIN needed to access the entry
      Returns:
      an object reference or null if the object is not available
      Throws:
      SecurityException - if the operation is not successful