Examples of SAMLAssertionWriter


Examples of org.picketlink.identity.federation.core.saml.v2.writers.SAMLAssertionWriter

            AttributeStatementType att = StatementUtil.createAttributeStatement(roles);
            assertion.addStatement(att);

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try {
                SAMLAssertionWriter writer = new SAMLAssertionWriter(StaxUtil.getXMLStreamWriter(baos));
                writer.write(assertion);
                SamlCredential cred = new SamlCredential(new String(baos.toByteArray()));
                theSubject.getPublicCredentials().add(cred);
            } catch (ProcessingException e) {
                throw new RuntimeException(e);
            }
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.