Examples of NssStore


Examples of com.sun.enterprise.ee.security.NssStore

                //We only want to make these calls if the Nss database already exists;
                //otherwise, this will cause an NSS database to be created
                //potentially with a bad master password (i.e. a master password which                
                //is different that that of the NSS database in the domain). This
                //results in an unusable Node Agent.
                NssStore nssStore = NssStore.getInstance(
                    nssDb.getParentFile().getAbsolutePath(),
                    false, getMasterPasswordClear(config));
                String[] result = nssStore.getTokenNamesAsArray();
                //We must explicitly close the NSS database so that it is not in use during
                //synchronization of the Node Agent.
                NssStore.closeInstance();

                return result;
View Full Code Here

Examples of com.sun.enterprise.ee.security.NssStore

    {       
        final EEFileLayout layout = (EEFileLayout)getFileLayout(config);          
        try {
            FileUtils.copy(layout.getNSSCertDBTemplate(), layout.getNSSCertDBFile());
            FileUtils.copy(layout.getNSSKeyDBTemplate(), layout.getNSSKeyDBFile());
            NssStore store = NssStore.getInstance(
                layout.getNSSCertDBFile().getParentFile().getAbsolutePath(),
                false, DEFAULT_MASTER_PASSWORD);           
            store.changePassword(DEFAULT_MASTER_PASSWORD, masterPassword)
            NssStore.closeInstance();
        } catch (Exception e) {
            throw new DomainException(
                _strMgr.getString("certDBInitializationFailed", layout.getConfigRoot()),
                    e);
View Full Code Here

Examples of com.sun.enterprise.ee.security.NssStore

            } else {
                if (! isNSSSupportAvailable()) {
                    reportMissingNss();
                }
                String dbdir = layout.getNSSCertDBFile().getParentFile().getAbsolutePath();           
                NssStore store = NssStore.getInstance(dbdir, false, oldPassword);     
                store.changePassword(oldPassword, newPassword);
                NssStore.closeInstance();
            }
        } catch (Exception ex) {
            throw new DomainException(_strMgr.getString("masterPasswordNotChanged"), ex);
        }
View Full Code Here

Examples of com.sun.enterprise.ee.security.NssStore

         if (! isNSSSupportAvailable()) {
             reportMissingNss();
         }
         final EEFileLayout layout = (EEFileLayout)getFileLayout(config);
         try {
            NssStore nssStore = NssStore.getInstance(
                layout.getNSSCertDBFile().getParentFile().getAbsolutePath(),
                false, getMasterPasswordClear(config));
            String[] result = nssStore.getTokenNamesAsArray();                     
            return result;
         } catch (Exception ex) {
             throw new DomainException(ex);
         }
     }       
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.