@Test public void testAuthenticate() { testAuthenticate(facade); }
public Uid authenticate(ObjectClass objectClass, String username, GuardedString password, OperationOptions options) { OracleConnectorHelper.checkObjectClass(objectClass, cfg.getConnectorMessages()); new LocalizedAssert(cfg.getConnectorMessages()).assertNotBlank(username, "username"); new LocalizedAssert(cfg.getConnectorMessages()).assertNotNull(password, "password"); if (options != null && Boolean.TRUE.equals(options.getOptions().get("returnUidOnly"))) { return findUserByName(username); } LOG.info("Authenticate user: [{0}]", username); if (cfg.isUseDriverForAuthentication()) { doDriverAuthenticate(username, password); } else { doCfgAuthenticate(username, password); } LOG.info("User authenticated : [{0}]", username); return new Uid(username); }
OracleOperationAuthenticate extends AbstractOracleOperation implements AuthenticateOp { public Uid authenticate(ObjectClass objectClass, String username, GuardedString password, OperationOptions options) { OracleConnectorHelper.checkObjectClass(objectClass, cfg.getConnectorMessages()); new LocalizedAssert(cfg.getConnectorMessages()).assertNotBlank(username, "username"); new LocalizedAssert(cfg.getConnectorMessages()).assertNotNull(password, "password"); if (options != null && Boolean.TRUE.equals(options.getOptions().get("returnUidOnly"))) { return findUserByName(username); } LOG.info("Authenticate user: [{0}]", username); if (cfg.isUseDriverForAuthentication()) { doDriverAuthenticate(username, password); } else { doCfgAuthenticate(username, password); } LOG.info("User authenticated : [{0}]", username); return new Uid(username); } }
OracleOperationAuthenticate extends AbstractOracleOperation implements AuthenticateOp { public Uid authenticate(ObjectClass objectClass, String username, GuardedString password, OperationOptions options) { OracleConnectorHelper.checkObjectClass(objectClass, cfg.getConnectorMessages()); new LocalizedAssert(cfg.getConnectorMessages()).assertNotBlank(username, "username"); new LocalizedAssert(cfg.getConnectorMessages()).assertNotNull(password, "password"); if (options != null && Boolean.TRUE.equals(options.getOptions().get("returnUidOnly"))) { return findUserByName(username); } LOG.info("Authenticate user: [{0}]", username); if (cfg.isUseDriverForAuthentication()) { doDriverAuthenticate(username, password); } else { doCfgAuthenticate(username, password); } LOG.info("User authenticated : [{0}]", username); return new Uid(username); } OracleOperationAuthenticate(OracleConfiguration cfg, Connection adminConn); }
OracleOperationAuthenticate extends AbstractOracleOperation implements AuthenticateOp { public Uid authenticate(ObjectClass objectClass, String username, GuardedString password, OperationOptions options) { OracleConnectorHelper.checkObjectClass(objectClass, cfg.getConnectorMessages()); new LocalizedAssert(cfg.getConnectorMessages()).assertNotBlank(username, "username"); new LocalizedAssert(cfg.getConnectorMessages()).assertNotNull(password, "password"); if (options != null && Boolean.TRUE.equals(options.getOptions().get("returnUidOnly"))) { return findUserByName(username); } LOG.info("Authenticate user: [{0}]", username); if (cfg.isUseDriverForAuthentication()) { doDriverAuthenticate(username, password); } else { doCfgAuthenticate(username, password); } LOG.info("User authenticated : [{0}]", username); return new Uid(username); } OracleOperationAuthenticate(OracleConfiguration cfg, Connection adminConn); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); }
OracleOperationAuthenticate extends AbstractOracleOperation implements AuthenticateOp { public Uid authenticate(ObjectClass objectClass, String username, GuardedString password, OperationOptions options) { OracleConnectorHelper.checkObjectClass(objectClass, cfg.getConnectorMessages()); new LocalizedAssert(cfg.getConnectorMessages()).assertNotBlank(username, "username"); new LocalizedAssert(cfg.getConnectorMessages()).assertNotNull(password, "password"); if (options != null && Boolean.TRUE.equals(options.getOptions().get("returnUidOnly"))) { return findUserByName(username); } LOG.info("Authenticate user: [{0}]", username); if (cfg.isUseDriverForAuthentication()) { doDriverAuthenticate(username, password); } else { doCfgAuthenticate(username, password); } LOG.info("User authenticated : [{0}]", username); return new Uid(username); } OracleOperationAuthenticate(OracleConfiguration cfg, Connection adminConn); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options);  }