Package org.apache.rahas.impl.util

Examples of org.apache.rahas.impl.util.SAMLAttributeCallback.addAttributes()


                populateClaimValues(userIdentifier, attrCallback);

                if (RahasConstants.TOK_TYPE_SAML_20.equals(data.getTokenType())) {
                    if (attrCallback.getSAML2Attributes() == null
                            || attrCallback.getSAML2Attributes().length == 0) {
                        attrCallback.addAttributes(getSAML2Attribute("Name", "Colombo",
                                "https://rahas.apache.org/saml/attrns"));
                    }
                } else {
                    if (attrCallback.getAttributes() == null
                            || attrCallback.getAttributes().length == 0) {
View Full Code Here


                    if (attrCallback.getAttributes() == null
                            || attrCallback.getAttributes().length == 0) {
                        SAMLAttribute attribute = new SAMLAttribute("Name",
                                "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                        .asList(new String[]{"Colombo/Rahas"}));
                        attrCallback.addAttributes(attribute);
                    }
                }

                attributeCallbackServices = IdentityAttributeServiceStore.getAttributeServices();
                for (int i = 0; i < attributeCallbackServices.length; i++) {
View Full Code Here

    if(callback.getCallbackType() == SAMLCallback.ATTR_CALLBACK){
      SAMLAttributeCallback cb = (SAMLAttributeCallback)callback;
      SAMLAttribute attribute = new SAMLAttribute("Name",
                     "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                             .asList(new String[] { "Custom/Rahas" }));
      cb.addAttributes(attribute);
    }else if(callback.getCallbackType() == SAMLCallback.NAME_IDENTIFIER_CALLBACK){
      SAMLNameIdentifierCallback cb = (SAMLNameIdentifierCallback)callback;
      SAMLNameIdentifier nameId = new SAMLNameIdentifier(
                "David", null, SAMLNameIdentifier.FORMAT_EMAIL);
      cb.setNameId(nameId);
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.