Examples of Credentials


Examples of br.gov.frameworkdemoiselle.security.Credentials

    SecurityContext securityContext = Beans.getReference(SecurityContext.class);

    if (header != null) {
      String[] basicCredentials = getCredentials(header);

      Credentials credentials = Beans.getReference(Credentials.class);
      credentials.setUsername(basicCredentials[0]);
      credentials.setPassword(basicCredentials[1]);

      securityContext.login();
      result = securityContext.isLoggedIn();
    }
View Full Code Here

Examples of chrriis.dj.nativeswing.swtimpl.components.Credentials

      WebBrowserAuthenticationHandler authenticationHandler = nativeWebBrowser.getAuthenticationHandler();
      if(authenticationHandler == null) {
        return new Object[] {true, null, null};
      }
      String resourceLocation = (String)args[0];
      Credentials credentials = authenticationHandler.getCredentials(webBrowser, resourceLocation);
      if(credentials == null) {
        return new Object[] {false, null, null};
      }
      return new Object[] {true, credentials.getUserName(), credentials.getPassword()};
    }
View Full Code Here

Examples of com.adito.security.Credentials

        }

        if (logonStateMachine.getState() == LogonStateAndCache.STATE_KNOWN_USERNAME_NO_SCHEME_SPOOF_PASSWORD_ENTRY) {
            scheme.addCredentials(new PasswordCredentials("", "".toCharArray()));
        } else if (logonStateMachine.getState() == LogonStateAndCache.STATE_UNKNOWN_USERNAME_PROMPT_FOR_PASSWORD) {
            Credentials creds = module.authenticate(request, params);
            if(creds!=null)
              scheme.addCredentials(creds);
        } else {
          Credentials creds = module.authenticate(request, params);
            if(creds!=null) {
              scheme.addCredentials(creds);
              logonStateMachine.setState(LogonStateAndCache.STATE_VALID_LOGON);
            }
            // Check we have a user object
View Full Code Here

Examples of com.alexecollins.docker.orchestration.model.Credentials

                ? new DockerClient(host.toString(), version)
                : new DockerClient(host.toString());
    }

    private Credentials credentials() {
        return (username != null || password != null || email != null) ? new Credentials(username, password, email) : null;
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.model.Credentials

    /**
     * Returns immutable session credentials for this session, beginning a new one if necessary.
     */
    public synchronized AWSSessionCredentials getImmutableCredentials() {
        Credentials creds = getSessionCredentials();
        return new BasicSessionCredentials(creds.getAccessKeyId(), creds.getSecretAccessKey(), creds.getSessionToken());
    }
View Full Code Here

Examples of com.bazaarvoice.auth.hmac.common.Credentials

    }

    @Override
    public Principal handle(HttpRequestContext request) throws NotAuthorizedException, InternalServerException {
        try {
            Credentials credentials = requestDecoder.decode(request);
            Principal result = authenticator.authenticate(credentials);
            if (result != null) {
                return result;
            }
View Full Code Here

Examples of com.calclab.emite.core.sasl.Credentials

    logger.info("Loging in from meta data...");
    final String userJID = PageAssist.getMeta(PARAM_JID, null);
    final String password = PageAssist.getMeta(PARAM_PASSWORD, null);
    if (userJID != null && password != null) {
      final XmppURI jid = uri(userJID);
      session.login(new Credentials(jid, password));
      return true;
    } else if (userJID != null && "anonymous".equals(userJID.toLowerCase())) {
      session.login(Credentials.ANONYMOUS);
      return true;
    }
View Full Code Here

Examples of com.cloudbees.plugins.credentials.Credentials

        private Object writeReplace() {
            return Channel.current().export(SVNAuthenticationBuilderProvider.class, this);
        }

        public SVNAuthenticationBuilder getBuilder(String realm) {
            Credentials c = credentialsByRealm.get(realm);
            if (c == null) {
                c = defaultCredentials;
            }
            if (c instanceof CertificateCredentials) {
                return new SVNCertificateAuthenticationBuilder((CertificateCredentials) c);
View Full Code Here

Examples of com.cloudcontrolled.api.client.auth.Credentials

    if (userName == null && password == null) {
      userName = System.getenv().get(CCTRL_EMAIL);
      password = System.getenv().get(CCTRL_PASSWORD);
    }

    Credentials credentials = new Credentials(userName, password);

    return credentials;
  }
View Full Code Here

Examples of com.esri.gpt.framework.security.credentials.Credentials

  sb.append(" securityAuthentication=\"").append(
      getSecurityAuthenticationLevel()).append("\"\n");
  sb.append(" securityProtocol=\"").append(
      getSecurityProtocol()).append("\"\n");
 
  Credentials cred = getServiceAccountCredentials();
  if ((cred != null) && (cred instanceof UsernamePasswordCredentials)) {
    UsernamePasswordCredentials upCred = (UsernamePasswordCredentials)cred;
    int nPwdLen = 0;
    if (upCred.getPassword() != null) {
      nPwdLen = upCred.getPassword().length();
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.