private static AttributeType getX500Attribute(String name) { AttributeType att = new AttributeType(name); att.getOtherAttributes().put(X500_QNAME, "LDAP"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get()); return att; } }
private static AttributeType getX500Attribute(String name) { AttributeType att = new AttributeType(name); att.getOtherAttributes().put(X500_QNAME, "LDAP"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get()); return att; } }
private static AttributeType getX500Attribute(String name) { AttributeType att = new AttributeType(name); att.getOtherAttributes().put(X500_QNAME, "LDAP"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get()); return att; } }
private static AttributeType getX500Attribute(String name) { AttributeType att = new AttributeType(name); att.getOtherAttributes().put(X500_QNAME, "LDAP"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get()); return att; } }
private static AttributeType getX500Attribute(String name) { AttributeType att = new AttributeType(name); att.getOtherAttributes().put(X500_QNAME, "LDAP"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get()); return att; } }
/** * Create an attribute type * * @param name Name of the attribute * @param nameFormat name format uri * @param attributeValues an object array of attribute values * * @return */ public static AttributeType createAttribute(String name, String nameFormat, Object... attributeValues) { AttributeType att = new AttributeType(name); att.setNameFormat(nameFormat); if (attributeValues != null && attributeValues.length > 0) { for (Object attributeValue : attributeValues) { att.addAttributeValue(attributeValue); } } return att; }
/** * Create an attribute type * * @param name Name of the attribute * @param nameFormat name format uri * @param attributeValues an object array of attribute values * @return */ public static AttributeType createAttribute(String name, String nameFormat, Object... attributeValues) { AttributeType att = new AttributeType(name); att.setNameFormat(nameFormat); if (attributeValues != null && attributeValues.length > 0) { for (Object attributeValue : attributeValues) { att.addAttributeValue(attributeValue); } } return att; }
/** * Create an attribute type * * @param name Name of the attribute * @param nameFormat name format uri * @param attributeValues an object array of attribute values * * @return */ public static AttributeType createAttribute(String name, String nameFormat, Object... attributeValues) { AttributeType att = new AttributeType(name); att.setNameFormat(nameFormat); if (attributeValues != null && attributeValues.length > 0) { for (Object attributeValue : attributeValues) { att.addAttributeValue(attributeValue); } } return att; }
/** * Create an attribute type * @param name Name of the attribute * @param nameFormat name format uri * @param attributeValues an object array of attribute values * @return */ public static AttributeType createAttribute(String name, String nameFormat, Object... attributeValues) { AttributeType att = new AttributeType(name); att.setNameFormat(nameFormat); if (attributeValues != null && attributeValues.length > 0) { for (Object attributeValue : attributeValues) { att.addAttributeValue(attributeValue); } } return att; }
/** * Create an attribute type * @param name Name of the attribute * @param nameFormat name format uri * @param attributeValues an object array of attribute values * @return */ public static AttributeType createAttribute(String name, String nameFormat, Object... attributeValues) { AttributeType att = new AttributeType(name); att.setNameFormat(nameFormat); if (attributeValues != null && attributeValues.length > 0) { for (Object attributeValue : attributeValues) { att.addAttributeValue(attributeValue); } } return att; }
/** * Create an attribute type given a role name * * @param roleName * * @return */ public static AttributeType createAttributeForRole(String roleName) { AttributeType att = new AttributeType("role"); att.setFriendlyName("role"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get()); // rolename att.addAttributeValue(roleName); return att; }
/** * Create an attribute type given a role name * * @param roleName * @return */ public static AttributeType createAttributeForRole(String roleName) { AttributeType att = new AttributeType("role"); att.setFriendlyName("role"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get()); // rolename att.addAttributeValue(roleName); return att; }
/** * Create an attribute type given a role name * @param roleName * @return */ public static AttributeType createAttributeForRole(String roleName) { AttributeType att = new AttributeType( "role" ); att.setFriendlyName("role"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get()); //rolename att.addAttributeValue( roleName ); return att; }
/** * Create an attribute type given a role name * @param roleName * @return */ public static AttributeType createAttributeForRole(String roleName) { AttributeType att = new AttributeType( "role" ); att.setFriendlyName("role"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get()); //rolename att.addAttributeValue( roleName ); return att; }
/** * Create an attribute type given a role name * * @param roleName * * @return */ public static AttributeType createAttributeForRole(String roleName) { AttributeType att = new AttributeType("role"); att.setFriendlyName("role"); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_BASIC.get()); // rolename att.addAttributeValue(roleName); return att; }
att = new AttributeType(key); att.setFriendlyName(key); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get());
att = new AttributeType(key); att.setFriendlyName(key); att.setNameFormat(JBossSAMLURIConstants.ATTRIBUTE_FORMAT_URI.get());
attributeType.setNameFormat(StaxParserUtil.getAttributeValue(nameFormat));
attributeType.setNameFormat(StaxParserUtil.getAttributeValue(nameFormat));
attributeType.setNameFormat(StaxParserUtil.getAttributeValue(nameFormat));