Examples of Anonymous


Examples of org.apache.vysper.xmpp.authorization.Anonymous


        List<SASLMechanism> mechanismList = new ArrayList<SASLMechanism>();
        mechanismList.add(new External());
        mechanismList.add(new Plain());
        mechanismList.add(new Anonymous());
        // add others
        assertEquals("stanzas are identical", stanza.toString(), new ServerResponses().getFeaturesForAuthentication(mechanismList).toString());
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.authorization.Anonymous

                .addText("ANONYMOUS").endInnerElement().endInnerElement().build();

        List<SASLMechanism> mechanismList = new ArrayList<SASLMechanism>();
        mechanismList.add(new External());
        mechanismList.add(new Plain());
        mechanismList.add(new Anonymous());
        // add others
        assertEquals("stanzas are identical", stanza.toString(), new ServerResponses().getFeaturesForAuthentication(
                mechanismList).toString());
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.authorization.Anonymous

                .addText("ANONYMOUS").endInnerElement().endInnerElement().build();

        List<SASLMechanism> mechanismList = new ArrayList<SASLMechanism>();
        mechanismList.add(new External());
        mechanismList.add(new Plain());
        mechanismList.add(new Anonymous());
        // add others
        Assert.assertEquals("stanzas are identical", stanza.toString(), new ServerResponses().getFeaturesForAuthentication(
                mechanismList).toString());
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.authorization.Anonymous

                InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream("xmppServer.jks");
                xmppServer.setTLSCertificateInfo(stream, "secret");

                // allow anonymous logins
                xmppServer.setSASLMechanisms(Arrays.asList(new SASLMechanism[]{new Anonymous()}));

                xmppServer.start();

                // add the multi-user chat module and create a few test rooms
                Conference conference = new Conference("test conference");
View Full Code Here

Examples of org.openengsb.core.api.security.annotation.Anonymous

    public Access checkAccess(String user, Object object) {
        if (!(object instanceof MethodInvocation)) {
            return Access.ABSTAINED;
        }
        MethodInvocation methodInvocation = (MethodInvocation) object;
        Anonymous public1 = AnnotationUtils.findAnnotation(methodInvocation.getMethod(), Anonymous.class);
        if (public1 != null) {
            return Access.GRANTED;
        }
        Collection<ServicePermission> permissions;
        try {
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.