Package se.litsec.eidas.opensaml.ext
Class RequestedAttributeTemplates
- java.lang.Object
-
- se.litsec.eidas.opensaml.ext.RequestedAttributeTemplates
-
public class RequestedAttributeTemplates extends Object
Utility methods for use whenRequestedAttributeelements are inserted in anAuthnRequestextension.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestedAttributecreate(String name, String friendlyName, String nameFormat, Boolean isRequired)Creates aRequestedAttributeobject for the given attribute name.static RequestedAttributeCURRENT_ADDRESS(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the CurrentAddress attribute.static RequestedAttributeCURRENT_FAMILY_NAME(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the CurrentFamilyName attribute.static RequestedAttributeCURRENT_GIVEN_NAME(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the CurrentGivenName attribute.static RequestedAttributeDATE_OF_BIRTH(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the DateOfBirth attribute.static RequestedAttributeGENDER(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the Gender attribute.static RequestedAttributePERSON_IDENTIFIER(Boolean isRequired, boolean includeFriendlyName)Creates aRequestedAttributeobject for the PersonIdentifier attribute.
-
-
-
Method Detail
-
PERSON_IDENTIFIER
public static RequestedAttribute PERSON_IDENTIFIER(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the PersonIdentifier attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the PersonIdentifier attribute
-
CURRENT_FAMILY_NAME
public static RequestedAttribute CURRENT_FAMILY_NAME(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the CurrentFamilyName attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the CurrentFamilyName attribute
-
CURRENT_GIVEN_NAME
public static RequestedAttribute CURRENT_GIVEN_NAME(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the CurrentGivenName attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the CurrentGivenName attribute
-
DATE_OF_BIRTH
public static RequestedAttribute DATE_OF_BIRTH(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the DateOfBirth attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the DateOfBirth attribute
-
GENDER
public static RequestedAttribute GENDER(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the Gender attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the Gender attribute
-
CURRENT_ADDRESS
public static RequestedAttribute CURRENT_ADDRESS(Boolean isRequired, boolean includeFriendlyName)
Creates aRequestedAttributeobject for the CurrentAddress attribute.- Parameters:
isRequired- flag to tell whether the attribute is requiredincludeFriendlyName- flag that tells whether the friendly name should be included- Returns:
- a
RequestedAttributeobject representing the CurrentAddress attribute
-
create
public static RequestedAttribute create(String name, String friendlyName, String nameFormat, Boolean isRequired)
Creates aRequestedAttributeobject for the given attribute name.- Parameters:
name- the attribute namefriendlyName- the attribute friendly name (optional)nameFormat- the name format (defaults tourn:oasis:names:tc:SAML:2.0:attrname-format:uriif the value is not supplied)isRequired- flag to tell whether the attribute is required- Returns:
- a
RequestedAttributeobject
-
-