Package java.security.KeyStore

Examples of java.security.KeyStore.PasswordProtection.destroy()


        try {
            final P11ProviderHandler providerHandler = new P11ProviderHandler(this.sessionData);
            loadFromKeyStore(adm, providerHandler.getKeyStore(pwp), null,
                             this.sessionData.slot.toString(),
                             providerHandler, newSignEntity, null);
            pwp.destroy();
        } catch( Exception e) {
            m_log.error("load from P11 problem", e);
            return false;
        }
        return true;
View Full Code Here


            } else {
              // For the Sun provider this works fine to initialize the provider using previously provided protection parameters.
              keyStore.load(null, null);
            }
            setKeys(keyStore, null);
            pwp.destroy();
        } catch (CATokenOfflineException e) {
            throw e;
        } catch (Throwable t) {
            log.error("Failed to initialize PKCS11 provider slot '"+this.sSlotLabel+"'.", t);
            CATokenAuthenticationFailedException authfe = new CATokenAuthenticationFailedException("Failed to initialize PKCS11 provider slot '"+this.sSlotLabel+"'.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.