Interface Pkcs11ObjectAccessor<T>

All Known Subinterfaces:
Pkcs11CertificatesAccessor, Pkcs11PrivateKeyAccessor
All Known Implementing Classes:
SunPkcs11CertificatesAccessor, SunPkcs11PrivateKeyAccessor
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 Pkcs11ObjectAccessor<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

      @Nullable T get(@Nonnull Provider provider, @Nonnull String alias, @Nonnull 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