| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final KeyStore. | |
| private static final AtomicInteger | |
| private KeyStore | |
| private static final Logger | |
| private static final SshAgent | NULL_AGENT
A dummy agent; exists only because
|
| private final SecurityCallback | |
| private final Provider | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Iterable | Returns: all the available identitiesin which we to load the identities session)Obtains the identities provided by the PKCS11 library. |
| public String | |
| public static Pkcs11Provider | getProvider(Path
Path to the library the SunPKCS11 provider shall useindex identifying the token; if < 0, ignored and 0 is used slotListIndex)Creates a new |
| private boolean | |
| private synchronized void | |
| pack-priv synchronized byte[] |
| builder | back to summary |
|---|---|
| private final KeyStore. | |
| COUNT | back to summary |
|---|---|
| private static final AtomicInteger COUNT | |
| keys | back to summary |
|---|---|
| private KeyStore keys | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NULL_AGENT | back to summary |
|---|---|
| private static final SshAgent NULL_AGENT A dummy agent; exists only because
| |
| prompter | back to summary |
|---|---|
| private final SecurityCallback prompter | |
| provider | back to summary |
|---|---|
| private final Provider provider | |
| PROVIDERS | back to summary |
|---|---|
| private static final Map<String, Pkcs11Provider> PROVIDERS | |
| Pkcs11Provider | back to summary |
|---|---|
| private Pkcs11Provider(Provider pkcs11, SecurityCallback prompter) | |
| getKeys | back to summary |
|---|---|
| public Iterable Obtains the identities provided by the PKCS11 library.
| |
| getName | back to summary |
|---|---|
| public String getName() Retrieves an identifying name of this
| |
| getProvider | back to summary |
|---|---|
| public static Pkcs11Provider getProvider(Path library, int slotListIndex) throws IOException Creates a new
| |
| isWrongPin | back to summary |
|---|---|
| private boolean isWrongPin(Throwable e) | |
| load | back to summary |
|---|---|
| private synchronized void load(SessionContext session) throws GeneralSecurityException, IOException | |
| sign | back to summary |
|---|---|
| pack-priv synchronized byte[] sign(SessionContext session, String algorithm, String alias, byte[] data) throws GeneralSecurityException, IOException | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Map. | sign(SessionContext
The session, String SessionContext for calling this method - may be null if not called within a
session contextRecommended signature algorithm - if algo, byte[] null/empty then one will be selected based on the
key type and/or signature factoriesNote even if specific algorithm specified, the implementation may disregard and choose another Data to sign data)Overrides org. Implements org. Proves the public key identity by signing the given data |
| Pkcs11Identity | back to summary |
|---|---|
| pack-priv Pkcs11Identity(PublicKey key, String alias) | |
| sign | back to summary |
|---|---|
| public Map. Overrides org. Implements org. Doc from org. Proves the public key identity by signing the given data
| |