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.
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
-
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 usealias
- the alias to the entry holding the objectpin
- 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
-