public class TokenKeyStoreFastSpi extends TokenKeyStoreSpi
KeyStore.getInstance("FastPKCS11KeyStore"); or
KeyStore.getInstance("FastPKCS11"); It can be used when the PKCS#11 token is not
removed or changed and if no token entries are added, changed or removed with external tools.
The FastPKCS11KeyStore can also be used, if the moment of external changes is known and the
KeyStore is then manually updated by using tokenKeyStore.updateKeyStore().
aliases_, certificateChainAliasToPkcs11ObjectsTable_, certificateChains_, infoOfRecentToken_, isUpToDate_, KEY_STORE_TYPE, keyAliasToPkcs11ObjectTable_, keys_, lastNewID_, readSession_, supportProviderName_, tokenManager_, trustedCertificateAliasToPkcs11ObjectTable_, trustedCertificates_, usedMechanismInfos_, usedMechanisms_, userPIN_, useUserSession_, writeSession_
Constructor and Description |
---|
TokenKeyStoreFastSpi() |
TokenKeyStoreFastSpi(TokenManager tokenManager) |
Modifier and Type | Method and Description |
---|---|
void |
engineLoad(java.io.InputStream in,
char[] password)
Loads and initializes this key store.
|
protected void |
ensureCurrentTables()
Overwrites ensureCurrentTables() of TokenKeyStoreSpi in order to do no updating.
|
clearTables, contains, createCertificate, createCertificateChain, createKeyCreationTemplate, createKeySpec, createPrivateKeySpec, createPublicKeySpec, createSecretKeySpec, createUniqueAlias, deleteCertificate, deleteChertificateChain, deleteKey, engineAliases, engineContainsAlias, engineDeleteEntry, engineGetCertificate, engineGetCertificateAlias, engineGetCertificateChain, engineGetCreationDate, engineGetKey, engineIsCertificateEntry, engineIsKeyEntry, engineSetCertificateEntry, engineSetKeyEntry, engineSetKeyEntry, engineSize, engineStore, ensureReadSession, ensureSupportProvider, ensureWriteSession, finalize, findCoreespondingKey, findKeysAndCertificateTables, generateNewID, getMechanismFeaturesSupport, getReadProtectedKeyOnDemand, getTokenManager, initialize, isEndUserCertificate, isSupportedBy, isUpToDate, loginSession, logoutSession, openReadSession, openWriteSession, readProviderName, releaseSessions, setKeyAttributes, setKeyAttributes, setReadProtectedKeyOnDemand, setUpToDate, tokenChanged, updateTables, writeProviderName
public TokenKeyStoreFastSpi()
public TokenKeyStoreFastSpi(TokenManager tokenManager)
public void engineLoad(java.io.InputStream in, char[] password) throws java.io.IOException, java.lang.UnsupportedOperationException
password
object
if it is provided.engineLoad
in class TokenKeyStoreSpi
in
- The stream to load from.password
- The user PIN (or password) for the token.java.io.IOException
- If the keystore cannot be loaded.java.lang.UnsupportedOperationException
- If getting the provider instance fails.KeyStoreSpi.engineLoad(InputStream,char[])
protected void ensureCurrentTables() throws IAIKPkcs11Exception
ensureCurrentTables
in class TokenKeyStoreSpi
IAIKPkcs11Exception
- If the update fails.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4