Package com.sun.enterprise.ee.security

Examples of com.sun.enterprise.ee.security.NssStore.changePassword()


            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


                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

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.