Examples of addIdentity()


Examples of org.apache.sshd.agent.unix.AgentClient.addIdentity()

        List<SshAgent.Pair<PublicKey, String>> keys = client.getIdentities();
        assertNotNull(keys);
        assertEquals(0, keys.size());

        KeyPair k = Utils.createTestHostKeyProvider().loadKey(KeyPairProvider.SSH_RSA);
        client.addIdentity(k, "");
        keys = client.getIdentities();
        assertNotNull(keys);
        assertEquals(1, keys.size());

        client.removeIdentity(k.getPublic());
View Full Code Here

Examples of org.atomojo.www.util.IdentityFilter.addIdentity()

         security.setNext(router);
         final IdentityFilter filter = new IdentityFilter(context,security,new Reference(authLink.getLink().toString()));
         vhost.attachDefault(filter);
         this.context.getAttributes().put(IdentityManager.ATTR, new IdentityManager() {
            public void add(String id,Identity identity) {
               filter.addIdentity(id, identity);
            }
            public boolean remove(String id)
            {
               return filter.removeIdentity(id);
            }
View Full Code Here

Examples of org.eigenbase.rex.RexProgramBuilder.addIdentity()

        if( analyze.isFilter() )
          {
          // Build a program that has a condition (a possibly complex expression)
          // but projects all inputs.
          final RexProgramBuilder builder = new RexProgramBuilder( previous.getOutputRowType(), rexBuilder );
          builder.addIdentity();
          builder.addCondition( program.gatherExpr( program.getCondition() ) );
          previous = builder.getProgram();
          list.add( Pair.of( Op.FILTER, previous ) );

          // Remove condition from the remaining program.
View Full Code Here

Examples of org.jboss.security.SecurityContextUtil.addIdentity()

      Identity i1 = new Identity1();
      Identity i2 = new Identity2();
     
      SecurityContextUtil util = sc.getUtil();
     
      util.addIdentity(i1);
      util.addIdentity(i2);
     
      Set<Identity> s1 = util.getIdentities(Identity1.class);
      Set<Identity> s2 = util.getIdentities(Identity2.class);
     
View Full Code Here

Examples of org.jboss.security.SubjectInfo.addIdentity()

        Object credential = util.getCredential();

        boolean authenticated = false;
        if (principal == null) {
            Identity unauthenticatedIdentity = getUnauthenticatedIdentity();
            subjectInfo.addIdentity(unauthenticatedIdentity);
            subject.getPrincipals().add(unauthenticatedIdentity.asPrincipal());
            authenticated = true;
        }

        if (authenticated == false) {
View Full Code Here

Examples of org.jboss.security.SubjectInfo.addIdentity()

        Object credential = util.getCredential();

        boolean authenticated = false;
        if (principal == null) {
            Identity unauthenticatedIdentity = getUnauthenticatedIdentity();
            subjectInfo.addIdentity(unauthenticatedIdentity);
            subject.getPrincipals().add(unauthenticatedIdentity.asPrincipal());
            authenticated = true;
        }

        if (authenticated == false) {
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DiscoverInfo.addIdentity()

                    if (discoverInfo.getNode() == null) {
                        // Set this client identity
                        DiscoverInfo.Identity identity = new DiscoverInfo.Identity("client",
                                getIdentityName());
                        identity.setType(getIdentityType());
                        response.addIdentity(identity);
                        // Add the registered features to the response
                        synchronized (features) {
                            for (Iterator<String> it = getFeatures(); it.hasNext();) {
                                response.addFeature(it.next());
                            }
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DiscoverItems.addIdentity()

                    if (discoverInfo.getNode() == null) {
                        // Set this client identity
                        DiscoverInfo.Identity identity = new DiscoverInfo.Identity("client",
                                getIdentityName());
                        identity.setType(getIdentityType());
                        response.addIdentity(identity);
                        // Add the registered features to the response
                        synchronized (features) {
                            for (Iterator<String> it = getFeatures(); it.hasNext();) {
                                response.addFeature(it.next());
                            }
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.