Examples of Identity


Examples of org.olat.core.id.Identity

      if (fdc != null) {
        fdc.setUserSession(usess);
        return fdc;
      }
     
      Identity identity = usess.getIdentity();
      // we need an identity...
      if (identity == null) return null;


      fdc = new VFSDirContext();
View Full Code Here

Examples of org.owasp.webscarab.plugin.identity.Identity

        WSFederation wsFed = new WSFederation(framework);
        framework.addPlugin(wsFed);
        WSFederationPanel wsFedPanel = new WSFederationPanel(wsFed);
        uif.addPlugin(wsFedPanel);
   
    Identity identity = new Identity(framework);
    framework.addPlugin(identity);
    IdentityPanel identityPanel = new IdentityPanel(identity);
    uif.addPlugin(identityPanel);
    }
View Full Code Here

Examples of org.picketlink.Identity

      throw new ServletException("This filter can only process HttpServletRequest requests.");
    }

    final HttpServletRequest request = (HttpServletRequest) servletRequest;
    final HttpServletResponse response = (HttpServletResponse) servletResponse;
    Identity identity = getIdentity();

    DefaultLoginCredentials creds = extractCredentials(request);

    if (creds.getCredential() != null && this.forceReAuthentication) {
      identity.logout();
      creds = extractCredentials(request);
    }

    if (isProtected(request) && !identity.isLoggedIn()) {
      // Force session creation
      request.getSession();

      if (creds.getCredential() != null) {
        identity.login();
      }

      if (identity.isLoggedIn()) {
        if (this.authenticationScheme.postAuthentication(request, response)) {
          chain.doFilter(servletRequest, servletResponse);
        }
      } else {
        this.authenticationScheme.challengeClient(request, response);
View Full Code Here

Examples of org.qi4j.api.entity.Identity

    @Override
    public boolean equals( Object o )
    {
        try
        {
            Identity other = ( (Identity) o );
            return other != null && other.identity().get().equals( identity.identity() );
        }
        catch( ClassCastException e )
        {
            return false;
        }
View Full Code Here

Examples of org.uberfire.security.Identity

    private Identity identity;

    @PostConstruct
    public void onStartup() {
        identity = new Identity() {

            public String getName() {
                return "jcr2vfs-migration";
            }
View Full Code Here

Examples of org.vngx.jsch.userauth.Identity

      byte[] blob = _readBuffer.getString();
      byte[] data = _readBuffer.getString();
      @SuppressWarnings("unused")
      int flags = _readBuffer.getInt();

      Identity identity = null;
      synchronized ( identities ) {
        for( Identity _identity : identities ) {
          if( _identity.getPublicKeyBlob() == null ) {
            continue;
          }
          if( !Arrays.equals(blob, _identity.getPublicKeyBlob()) ) {
            continue;
          }
          if( _identity.isEncrypted() ) {
            if( userinfo == null ) {
              continue;
            }
            while( _identity.isEncrypted() ) {
              if( !userinfo.promptPassphrase(String.format(MessageConstants.PROMPT_PASSPHRASE, _identity.getName())) ) {
                break;
              }
              String _passphrase = userinfo.getPassphrase();
              if( _passphrase == null ) {
                break;
              }

              byte[] passphrase = Util.str2byte(_passphrase);
              try {
                if( _identity.setPassphrase(passphrase) ) {
                  break;
                }
              } catch(JSchException e) {
                break;
              }
            }
          }

          if( !_identity.isEncrypted() ) {
            identity = _identity;
            break;
          }
        }
      }

      byte[] signature = null;
      if( identity != null ) {
        signature = identity.getSignature(data);
      }

      _messageBuffer.reset();
      if( signature == null ) {
        _messageBuffer.putByte(SSH2_AGENT_FAILURE);
View Full Code Here

Examples of org.zanata.webtrans.shared.auth.Identity

        GetValidationRulesResult validationRulesResult =
                getValidationRulesHandler.execute(new GetValidationRulesAction(
                        workspaceId), context);

        Identity identity = new Identity(editorClientId, person);
        workspace.getWorkspaceContext().getWorkspaceId()
                .getProjectIterationId()
                .setProjectType(projectIteration.getProjectType());
        UserWorkspaceContext userWorkspaceContext =
                new UserWorkspaceContext(workspace.getWorkspaceContext(),
View Full Code Here

Examples of plugins.Freetalk.Identity

        String authorText;
        String authorScore;
       
        // Author related stuff
        {
          Identity author = null;
         
          // TODO: Use a colored "unknown" if the author/score is unknown
          // TODO: Use a special color if author == yourself
          authorText = "?"; // TODO: l10n
          authorScore = "?";
         
          try {
            author = ref.getMessageList().getAuthor();
            authorText = author.getShortestUniqueName();
           
            // TODO: Get rid of the cast somehow, we should maybe call this WoTBoardPage :|
            final int score = ((WoTOwnIdentity)mOwnIdentity).getScoreFor((WoTIdentity)author);
            if (score == Integer.MAX_VALUE)
              authorScore = "-"; // TODO: l10n
View Full Code Here

Examples of rocks.xmpp.extensions.disco.model.info.Identity

        InfoDiscovery serviceDiscovery = iq.getExtension(InfoDiscovery.class);
        Assert.assertNotNull(serviceDiscovery);
        Assert.assertEquals(serviceDiscovery.getIdentities().size(), 2);
        Assert.assertEquals(serviceDiscovery.getFeatures().size(), 7);

        Identity identity1 = new Identity("conference", "text", "Play-Specific Chatrooms");
        Identity identity2 = new Identity("directory", "chatroom", "Play-Specific Chatrooms");

        Assert.assertTrue(serviceDiscovery.getIdentities().contains(identity1));
        Assert.assertTrue(serviceDiscovery.getIdentities().contains(identity2));
        Assert.assertTrue(serviceDiscovery.getFeatures().contains(new Feature("http://jabber.org/protocol/disco#info")));
        Assert.assertTrue(serviceDiscovery.getFeatures().contains(new Feature("http://jabber.org/protocol/disco#items")));
View Full Code Here

Examples of securesocial.core.Identity

* @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
*/
public class BaseController extends Controller {

    protected static User getLoggedUser() {
        Identity socialUser = (Identity) ctx().args.get(SecureSocial.USER_KEY);
        User user = User.findByEmail(socialUser.email().get());
        return user;
    }
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.