Examples of disposePassword()


Examples of org.geoserver.security.GeoServerSecurityManager.disposePassword()

        char[] key = manager.getRandomPassworddProvider().getRandomPasswordWithDefaultLength();
       
        StandardPBEByteEncryptor enc = new StandardPBEByteEncryptor();
        enc.setPasswordCharArray(key);
        // since the password is copied, we can scramble it
        manager.disposePassword(key);
       
        if (manager.isStrongEncryptionAvailable()) {
            enc.setProvider(new BouncyCastleProvider());
            enc.setAlgorithm("PBEWITHSHA256AND128BITAES-CBC-BC");
        }
View Full Code Here

Examples of org.geoserver.security.GeoServerSecurityManager.disposePassword()

                    newpassArray, newpassArray);
        } catch (Exception e) {
            throw new RestletException("Cannot change master password",
                    Status.CLIENT_ERROR_UNPROCESSABLE_ENTITY,e);
        } finally {
            m.disposePassword(currentArray);
            m.disposePassword(newpassArray);
        }
    }

}
View Full Code Here

Examples of org.geoserver.security.GeoServerSecurityManager.disposePassword()

        } catch (Exception e) {
            throw new RestletException("Cannot change master password",
                    Status.CLIENT_ERROR_UNPROCESSABLE_ENTITY,e);
        } finally {
            m.disposePassword(currentArray);
            m.disposePassword(newpassArray);
        }
    }

}
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.