Package org.switchyard.security.credential

Examples of org.switchyard.security.credential.AssertionCredential


        parentGroup.addMember(user);
        GroupPrincipal childGroup = new GroupPrincipal("testChildGroup");
        childGroup.addMember(role);
        parentGroup.addMember(childGroup);
        Set<Credential> creds = new LinkedHashSet<Credential>();
        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"));
View Full Code Here


                    while (iter.hasNext()) {
                        Node securityTokenNode = (Node)iter.next();
                        if (securityTokenNode.getNodeType() == Node.ELEMENT_NODE) {
                            String securityTokenNodeName = XMLHelper.nameOf(securityTokenNode);
                            if ("Assertion".equalsIgnoreCase(securityTokenNodeName)) {
                                credentials.add(new AssertionCredential((Element)securityTokenNode));
                            } else if ("UsernameToken".equalsIgnoreCase(securityTokenNodeName)) {
                                NodeList usernameChildElements = securityTokenNode.getChildNodes();
                                for (int i=0; i < usernameChildElements.getLength(); i++) {
                                    Node usernameChildNode = usernameChildElements.item(i);
                                    String usernameChildeNodeName = XMLHelper.nameOf(usernameChildNode);
View Full Code Here

TOP

Related Classes of org.switchyard.security.credential.AssertionCredential

Copyright © 2018 www.massapicom. 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.