Examples of AuthHandler


Examples of com.elasticinbox.pop3.server.handler.AuthHandler

  public void start() throws Exception
  {
    Logger logger = new POP3ProtocolLogger();

    POP3ProtocolHandlerChain chain = new POP3ProtocolHandlerChain(new AuthHandler(backend));

    server = new NettyServer(new POP3Protocol(chain, new POP3ServerConfig(), logger));
    server.setListenAddresses(new InetSocketAddress(Configurator.getPop3Port()));
    server.setMaxConcurrentConnections(Configurator.getPop3MaxConnections());
    server.setTimeout(POP3ServerConfig.CONNECTION_TIMEOUT);
View Full Code Here

Examples of com.jetdrone.vertx.yoke.middleware.AuthHandler

    }

    @Test
    public void testEmptyPassword() {
        final Yoke yoke = new Yoke(this);
        yoke.use(new com.jetdrone.vertx.yoke.middleware.BasicAuth(new AuthHandler() {
            @Override
            public void handle(String username, String password, Handler<JsonObject> result) {
                boolean success = username.equals("Aladdin") && password == null;
                if (success) {
                    result.handle(new JsonObject().putString("username", username));
View Full Code Here

Examples of com.jetdrone.vertx.yoke.middleware.AuthHandler

        app.use(new BodyParser());
        app.use(new CookieParser(hmac));
        app.use(new Session(hmac));

        final FormAuth formAuth = new FormAuth(new AuthHandler() {
            @Override
            public void handle(String username, String password, Handler<JsonObject> result) {
                if ("foo".equals(username) && "bar".equals(password)) {
                    result.handle(new JsonObject().putString("username", "foo"));
                } else {
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.core.sasl.handler.AuthHandler

*/
public class SASLStanzaDictionary extends NamespaceHandlerDictionary {

    public SASLStanzaDictionary() {
        super(NamespaceURIs.URN_IETF_PARAMS_XML_NS_XMPP_SASL);
        register(new AuthHandler());
        seal();
    }
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.