Package it.eng.spago.security

Examples of it.eng.spago.security.DefaultCipher


     * @throws LDAPException
     * @throws UnsupportedEncodingException
     */
    private LDAPConnection createConnection() throws LDAPException, UnsupportedEncodingException {
  logger.debug("IN");
  DefaultCipher defaultCipher = new DefaultCipher();
  LDAPConnection connection = null;

  try {
      connection = new LDAPConnection();
      connection.connect(host, port);
      if (connection.isConnected()) {
    connection.bind(LDAPConnection.LDAP_V3, adminUser, (defaultCipher.decrypt(adminPsw)).getBytes("UTF8"));
      }
      if (connection.isBound()) {
    logger.debug("OUT");
    return connection;
      }
View Full Code Here

TOP

Related Classes of it.eng.spago.security.DefaultCipher

Copyright © 2018 www.massapicom. 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.