Examples of Credential


Examples of com.sequenceiq.cloudbreak.domain.Credential

    public static String getUserCerFileName(Credential credential, String user) {
        return String.format("%s/%s/%s.cer", getCertificateFolder(user), credential.getId(), user);
    }

    public File getCertificateFile(Long credentialId, CbUser user) {
        Credential credential = credentialRepository.findOne(credentialId);
        if (credential == null) {
            throw new NotFoundException(String.format("Credential '%s' not found", credentialId));
        }
        return new File(getUserCerFileName(credential, azureStackUtil.emailAsFolder(user)));
    }
View Full Code Here

Examples of com.shopify.api.common.Credential

    shopify.sharedSecret=77bdea2f2d097eda50045aee144d3236
    shopify.shopName=footballhelmets-com
    shopify.apiPassword=f23f241484246226e1703c2f69e066bb
     */
   
    Credential creds = new Credential("813f493c07bbd41beca155184701d134", "77bdea2f2d097eda50045aee144d3236", "footballhelmets-com", "f23f241484246226e1703c2f69e066bb");
    client = new ShopifyClient(creds);
  }
View Full Code Here

Examples of com.twilio.sdk.resource.instance.sip.Credential

  /* (non-Javadoc)
   * @see com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient, java.util.Map)
   */
  @Override
    protected Credential makeNew(TwilioRestClient client, Map<String, Object> params) {
      return new Credential(client, params);
    }
View Full Code Here

Examples of com.twitterapime.rest.Credential

        String user = (String) cfg.getUser();
        String pass = (String) cfg.getPass();
        String consumerKey = "LDMQEFW35SC91fM4xtlfVw";
        String consumerSecret = "DEjgPTmyWX55j6ZPNefpTZ9ImE7QCLrdyhQslDKoY";

        Credential c = new Credential(user, pass);//, consumerKey,consumerSecret);
        return UserAccountManager.getInstance(c);
    }
View Full Code Here

Examples of hudson.scm.SubversionSCM.DescriptorImpl.Credential

      SubversionSCM.DescriptorImpl subversionDescriptor = (SubversionSCM.DescriptorImpl)getSCMDescriptor();
      try {
        Field credentialField = SubversionSCM.DescriptorImpl.class.getDeclaredField("credentials");
        credentialField.setAccessible(true);
        Map<String,Credential> credentials = (Map<String,Credential>)credentialField.get(subversionDescriptor);
        Credential cred = credentials.get(realm);
        if(cred == null){
          LOGGER.severe("No credentials are stored in Hudson for realm ["+realm+"] !");
          return null;
        }
        String kind = ISVNAuthenticationManager.PASSWORD;
        if(scmUrl.startsWith("svn+ssh")){
          kind = ISVNAuthenticationManager.SSH;
        }
        return createSCMCredentialConfiguration(cred.createSVNAuthentication(kind));
      } catch (SecurityException e) {
        LOGGER.log(Level.SEVERE, "'credentials' field not readable on SubversionSCM.DescriptorImpl !");
      } catch (NoSuchFieldException e) {
        LOGGER.log(Level.SEVERE, "'credentials' field not readable on SubversionSCM.DescriptorImpl !");
      } catch (IllegalArgumentException e) {
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.Credential

        for (CredentialData data : authRepository.getEc2Credentials().list()) {
            if (data.getUserId() != user.getId()) {
                continue;
            }

            Credential c = toModel(data);
            response.credentials.add(c);
        }

        return response;
    }
View Full Code Here

Examples of io.undertow.security.idm.Credential

        SSLSession sslSession = exchange.getConnection().getSslSession();
        if (sslSession != null) {
            try {
                Certificate[] clientCerts = sslSession.getPeerCertificates();
                if (clientCerts[0] instanceof X509Certificate) {
                    Credential credential = new X509CertificateCredential((X509Certificate) clientCerts[0]);

                    IdentityManager idm = securityContext.getIdentityManager();
                    Account account = idm.verify(credential);
                    if (account != null) {
                        securityContext.authenticationComplete(account, name);
View Full Code Here

Examples of io.undertow.security.idm.Credential

        SSLSessionInfo sslSession = exchange.getConnection().getSslSessionInfo();
        if (sslSession != null) {
            try {
                Certificate[] clientCerts = getPeerCertificates(exchange, sslSession, securityContext);
                if (clientCerts[0] instanceof X509Certificate) {
                    Credential credential = new X509CertificateCredential((X509Certificate) clientCerts[0]);

                    IdentityManager idm = securityContext.getIdentityManager();
                    Account account = idm.verify(credential);
                    if (account != null) {
                        securityContext.authenticationComplete(account, name, false);
View Full Code Here

Examples of net.jxta.credential.Credential

            //Athenticate and join to group
        AuthenticationCredential authCred = new AuthenticationCredential(group,null,creds);
        MembershipService membership = group.getMembershipService();
        Authenticator auth = membership.apply(authCred);
            if(auth.isReadyForJoin()){
                Credential myCred = membership.join(auth);
                printOnLog("[===== Detalhes do Grupo =====]");
                StructuredTextDocument doc = (StructuredTextDocument)myCred.getDocument(new MimeMediaType("text/plain"));
                StringWriter out = new StringWriter();
                doc.sendToWriter(out);
               
                printOnLog(out.toString());
                printOnLog("[+]Nome do PEER: " + group.getPeerName() + " está online:-)\n");
View Full Code Here

Examples of net.solosky.maplefetion.bean.Credential

              FetionStore store = this.fetionContext.getFetionStore();
              List list = XMLHelper.findAll(root, "/results/user/credentials/*credential");
              Iterator it = list.iterator();
              while(it.hasNext()) {
                Element c = (Element) it.next();
                store.addCredential(new Credential(c.getAttributeValue("domain"), c.getAttributeValue("c")));
              }
             
              logger.debug("SSISignV4:ssic="+user.getSsiCredential());
             
              break;
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.