Package org.opensaml

Examples of org.opensaml.SAMLAttribute


              SAMLCallbackHandler handler = config.getCallbackHander();
              handler.handle(cb);
              attrs = cb.getAttributes();
            }else{
              //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                        "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                .asList(new String[] { "Colombo/Rahas" }));
                attrs = new SAMLAttribute[]{attribute};
            }
           
View Full Code Here


              SAMLCallbackHandler handler = config.getCallbackHander();
              handler.handle(cb);
              attrs = cb.getAttributes();
            }else{
              //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                        "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                .asList(new String[] { "Colombo/Rahas" }));
                attrs = new SAMLAttribute[]{attribute};
            }
           
View Full Code Here

        }
        handler.handle(cb);
        attrs = cb.getAttributes();
            }else{
              //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                        "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                .asList(new String[] { "Colombo/Rahas" }));
                attrs = new SAMLAttribute[]{attribute};
            }
           
View Full Code Here

                }
                handler.handle(cb);
                attrs = cb.getAttributes();
            } else {
                //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                                                            "https://rahas.apache.org/saml/attrns",
                                                            null, -1,
                                                            Arrays.asList(new String[]{"Colombo/Rahas"}));
                attrs = new SAMLAttribute[]{attribute};
            }
View Full Code Here

        }
        handler.handle(cb);
        attrs = cb.getAttributes();
            }else{
              //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                        "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                .asList(new String[] { "Colombo/Rahas" }));
                attrs = new SAMLAttribute[]{attribute};
            }
           
View Full Code Here

                    }
                }
            }

            // Adding a new attribute
            SAMLAttribute attribute = null;
            attribute = new SAMLAttribute("Custom Attribute",
                    "http://wso2.org/claims/customAttribute", null, -1, Arrays
                            .asList(new String[]{"Sample Value"}));
            attrCallback.addAttributes(attribute);

        } catch (Exception e) {
View Full Code Here

                                "https://rahas.apache.org/saml/attrns"));
                    }
                } else {
                    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);
                    }
                }
View Full Code Here

        try {
            mapValues = connector.getUserClaimValues(userId, claimList.toArray(claimArray), null);
            ite = requestedClaims.values().iterator();
            while (ite.hasNext()) {
                SAMLAttribute attribute = null;
                Attribute saml2Attribute = null;
                RequestedClaimData claimData = ite.next();
                claimData.setValue(mapValues.get(claimData.getUri()));
                if (claimData.getValue() != null) {
                    if (RahasConstants.TOK_TYPE_SAML_20.equals(rahasData.getTokenType())) {
                        saml2Attribute = getSAML2Attribute(supportedClaims.get(claimData.getUri())
                                .getDisplayTag(), claimData.getValue(), claimData.getUri());
                        callback.addAttributes(saml2Attribute);
                    } else {
                        attribute = new SAMLAttribute(supportedClaims.get(claimData.getUri())
                                .getDisplayTag(), claimData.getUri(), null, -1, Arrays
                                .asList(new String[]{claimData.getValue()}));
                        callback.addAttributes(attribute);
                    }
                }
View Full Code Here

            String ppidValue = null;
            String issuerInfo = null;

            while (statements.hasNext()) {
                SAMLAttributeStatement stmt = null;
                SAMLAttribute attr = null;
                stmt = (SAMLAttributeStatement) statements.next();
                attr = (SAMLAttribute) stmt.getAttributes().next();

                if ("privatepersonalidentifier".equals(attr.getName())
                        && (IdentityConstants.NS + "/claims").equals(attr.getNamespace())) {
                    ppidValue = (String) attr.getValues().next();
                }
            }

            if (ppidValue != null) {
                String user = null;
View Full Code Here

        }
        handler.handle(cb);
        attrs = cb.getAttributes();
            }else{
              //TODO Remove this after discussing
                SAMLAttribute attribute = new SAMLAttribute("Name",
                        "https://rahas.apache.org/saml/attrns", null, -1, Arrays
                                .asList(new String[] { "Colombo/Rahas" }));
                attrs = new SAMLAttribute[]{attribute};
            }
           
View Full Code Here

TOP

Related Classes of org.opensaml.SAMLAttribute

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.