Examples of PasswordCredential


Examples of org.jboss.as.domain.management.security.PasswordCredential

                    SubjectUserInfo sinfo = (SubjectUserInfo) userInfo;
                    subject = sinfo.getSubject();

                    Set<PasswordCredential> pcSet = subject.getPrivateCredentials(PasswordCredential.class);
                    if (pcSet.size() > 0) {
                        PasswordCredential pc = pcSet.iterator().next();
                        p = new SimplePrincipal(pc.getUserName());
                        credential = new String(pc.getCredential());
                        RemotingContext.clear(); // Now that it has been used clear it.
                    }
                }
                if (p == null || credential == null) {
                    p = new SimplePrincipal(UUID.randomUUID().toString());
View Full Code Here

Examples of org.jboss.errai.bus.client.security.impl.PasswordCredential

              switch (CredentialTypes.valueOf(credentialNames[i])) {
                case Name:
                  credentials[i] = new NameCredential();
                  break;
                case Password:
                  credentials[i] = new PasswordCredential();
                  break;

                default:
                  //todo: throw a massive error here.
              }
View Full Code Here

Examples of org.jboss.errai.bus.client.security.impl.PasswordCredential

              switch (CredentialTypes.valueOf(credentialNames[i])) {
                case Name:
                  credentials[i] = new NameCredential();
                  break;
                case Password:
                  credentials[i] = new PasswordCredential();
                  break;

                default:
                  //todo: throw a massive error here.
              }
View Full Code Here

Examples of org.jboss.identity.idm.impl.api.PasswordCredential

   public boolean validatePassword(User identity, String password) throws IdentityException
   {
      checkNotNullArgument(identity, "User");
      checkNotNullArgument(password, "Password");
      return getRepository().validateCredential(getInvocationContext(), createIdentityObject(identity), new PasswordCredential(password));
   }
View Full Code Here

Examples of org.josso.auth.scheme.PasswordCredential

      //Get the User corresponding to this credentialKey
      BaseUser user = this.loadUser((SimpleUserKey)credentialKey);
      SSONameValuePair[] properties = user.getProperties();
      String password = properties[0].getValue();
     
      return new Credential[]{new UsernameCredential(user.getName()), new PasswordCredential(password)};
   }
View Full Code Here

Examples of org.picketlink.idm.impl.api.PasswordCredential

                for (int i = 0; i < callbacks.length; i++) {
                    if (callbacks[i] instanceof NameCallback) {
                        ((NameCallback) callbacks[i]).setName(credentials.getUsername());
                    } else if (callbacks[i] instanceof PasswordCallback) {
                        if (credentials.getCredential() instanceof PasswordCredential) {
                            PasswordCredential credential = (PasswordCredential) credentials.getCredential();
                            ((PasswordCallback) callbacks[i]).setPassword(credential.getValue() != null ?
                                    credential.getValue().toCharArray() : null);
                        }
                    } else {
                        log.warn("Unsupported callback " + callbacks[i]);
                    }
                }
View Full Code Here

Examples of org.picketlink.idm.impl.api.PasswordCredential

    @Inject
    private Identity identity;

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        creds.setCredential(new PasswordCredential("test"));
        creds.setUsername("test");

        identity.login();

        if (identity.isLoggedIn())
View Full Code Here

Examples of org.picketlink.idm.impl.api.PasswordCredential

                ((PasswordCredential) credential).getValue() : null;
    }

    public void setPassword(String password) {
        if (this.credential == null) {
            this.credential = new PasswordCredential(password);
        } else if (this.credential != null && this.credential instanceof PasswordCredential &&
                ((PasswordCredential) this.credential).getValue() != password &&
                ((PasswordCredential) this.credential).getValue() == null ||
                !((PasswordCredential) this.credential).getValue().equals(password)) {
            this.credential = new PasswordCredential(password);
            invalid = false;
            manager.fireEvent(new CredentialsUpdatedEvent());
        }
    }
View Full Code Here

Examples of org.sblim.wbem.client.PasswordCredential

    // *****************************
    // 1. Create user credentials
    // *****************************
    UserPrincipal userPr = new UserPrincipal(USER);
    char [] pwdCharArray = PWD.toCharArray();
    PasswordCredential pwCred = new PasswordCredential(pwdCharArray);     

    // *****************************
    // 2. Set NameSpace
    // - URL is set like: http(s)://<IP>:Port
    // - Namespace does not need to be specified in COPs if set in this constuctor
View Full Code Here

Examples of org.switchyard.security.credential.PasswordCredential

        creds.add(new AssertionCredential(new ElementPuller().pull(new StringReader("<testAssertion/>"))));
        creds.add(SOAPMessageCredentialExtractorTests.getBinarySecurityTokenCertificateCredential());
        creds.add(new ConfidentialityCredential(true));
        creds.add(new ConfidentialityCredential(false));
        creds.add(new NameCredential("testName"));
        creds.add(new PasswordCredential("testPassword"));
        creds.add(new PrincipalCredential(user, true));
        creds.add(new PrincipalCredential(role, false));
        creds.add(new PrincipalCredential(childGroup, true));
        creds.add(new PrincipalCredential(parentGroup, false));
        Subject childSubject = new Subject();
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.