Examples of UserIdentity


Examples of org.eclipse.jetty.server.UserIdentity

      Subject subject = new Subject();
     
      //TODO: hardcoded to jetty - rewrite
      //*******************************************************
      DefaultIdentityService _identityService = new DefaultIdentityService();
      UserIdentity user = _identityService.newUserIdentity(subject, principal, new String[0]);
           
      Authentication cached=new HttpSessionAuthentication(session, user);
            session.setAttribute(HttpSessionAuthentication.__J_AUTHENTICATED, cached);
      //*******************************************************
           
View Full Code Here

Examples of tahrir.io.net.broadcasts.UserIdentity

            }
        }

        public static void addTestInformationToNode(final TrNode node) {

            UserIdentity user1 = new UserIdentity("user1", TrCrypto.createRsaKeyPair().a, Optional.of(TrCrypto.createRsaKeyPair().b));
            UserIdentity user2 = new UserIdentity("user2", TrCrypto.createRsaKeyPair().a, Optional.of(TrCrypto.createRsaKeyPair().b));
            UserIdentity user3 = new UserIdentity("User3", node.getRemoteNodeAddress().publicKey, Optional.of(node.getPrivateNodeId().privateKey));
            UserIdentity user4 = new UserIdentity("User4", node.getRemoteNodeAddress().publicKey, Optional.of(node.getPrivateNodeId().privateKey));
            UserIdentity user5 = new UserIdentity("User5", node.getRemoteNodeAddress().publicKey, Optional.of(node.getPrivateNodeId().privateKey));
            UserIdentity user6 = new UserIdentity("User6", node.getRemoteNodeAddress().publicKey, Optional.of(node.getPrivateNodeId().privateKey));
            UserIdentity user7 = new UserIdentity("Guest", TrCrypto.createRsaKeyPair().a, Optional.<RSAPrivateKey>absent());
            node.mbClasses.identityStore.addIdentityWithLabel(TrConstants.FOLLOWING, user1);
            node.mbClasses.identityStore.addIdentity(user2);
            node.mbClasses.identityStore.addIdentityWithLabel(TrConstants.FOLLOWING, user7);
            node.mbClasses.identityStore.addIdentityWithLabel(TrConstants.OWN, user3);
            node.mbClasses.identityStore.addIdentityWithLabel(TrConstants.OWN, user4);
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.