org.eclipse.higgins.icard.provider.cardspace.common.utils
Class SelfIssuedCardClaims
java.lang.Object
org.eclipse.higgins.icard.provider.cardspace.common.utils.SelfIssuedCardClaims
- public class SelfIssuedCardClaims
- extends Object
GIVEN_NAME_TYPE
public static final String GIVEN_NAME_TYPE
- See Also:
- Constant Field Values
GIVEN_NAME_NAME
public static final String GIVEN_NAME_NAME
- See Also:
- Constant Field Values
GIVEN_NAME_DESC
public static final String GIVEN_NAME_DESC
- See Also:
- Constant Field Values
SURNAME_TYPE
public static final String SURNAME_TYPE
- See Also:
- Constant Field Values
SURNAME_NAME
public static final String SURNAME_NAME
- See Also:
- Constant Field Values
SURNAME_DESC
public static final String SURNAME_DESC
- See Also:
- Constant Field Values
EMAIL_ADDRESS_TYPE
public static final String EMAIL_ADDRESS_TYPE
- See Also:
- Constant Field Values
EMAIL_ADDRESS_NAME
public static final String EMAIL_ADDRESS_NAME
- See Also:
- Constant Field Values
EMAIL_ADDRESS_DESC
public static final String EMAIL_ADDRESS_DESC
- See Also:
- Constant Field Values
STREET_ADDRESS_TYPE
public static final String STREET_ADDRESS_TYPE
- See Also:
- Constant Field Values
STREET_ADDRESS_NAME
public static final String STREET_ADDRESS_NAME
- See Also:
- Constant Field Values
STREET_ADDRESS_DESC
public static final String STREET_ADDRESS_DESC
- See Also:
- Constant Field Values
LOCALITY_TYPE
public static final String LOCALITY_TYPE
- See Also:
- Constant Field Values
LOCALITY_NAME
public static final String LOCALITY_NAME
- See Also:
- Constant Field Values
LOCALITY_DESC
public static final String LOCALITY_DESC
- See Also:
- Constant Field Values
STATE_OR_PROVINCE_TYPE
public static final String STATE_OR_PROVINCE_TYPE
- See Also:
- Constant Field Values
STATE_OR_PROVINCE_NAME
public static final String STATE_OR_PROVINCE_NAME
- See Also:
- Constant Field Values
STATE_OR_PROVINCE_DESC
public static final String STATE_OR_PROVINCE_DESC
- See Also:
- Constant Field Values
POSTAL_CODE_TYPE
public static final String POSTAL_CODE_TYPE
- See Also:
- Constant Field Values
POSTAL_CODE_NAME
public static final String POSTAL_CODE_NAME
- See Also:
- Constant Field Values
POSTAL_CODE_DESC
public static final String POSTAL_CODE_DESC
- See Also:
- Constant Field Values
COUNTRY_TYPE
public static final String COUNTRY_TYPE
- See Also:
- Constant Field Values
COUNTRY_NAME
public static final String COUNTRY_NAME
- See Also:
- Constant Field Values
COUNTRY_DESC
public static final String COUNTRY_DESC
- See Also:
- Constant Field Values
HOME_PHONE_TYPE
public static final String HOME_PHONE_TYPE
- See Also:
- Constant Field Values
HOME_PHONE_NAME
public static final String HOME_PHONE_NAME
- See Also:
- Constant Field Values
HOME_PHONE_DESC
public static final String HOME_PHONE_DESC
- See Also:
- Constant Field Values
OTHER_PHONE_TYPE
public static final String OTHER_PHONE_TYPE
- See Also:
- Constant Field Values
OTHER_PHONE_NAME
public static final String OTHER_PHONE_NAME
- See Also:
- Constant Field Values
OTHER_PHONE_DESC
public static final String OTHER_PHONE_DESC
- See Also:
- Constant Field Values
MOBILE_PHONE_TYPE
public static final String MOBILE_PHONE_TYPE
- See Also:
- Constant Field Values
MOBILE_PHONE_NAME
public static final String MOBILE_PHONE_NAME
- See Also:
- Constant Field Values
MOBILE_PHONE_DESC
public static final String MOBILE_PHONE_DESC
- See Also:
- Constant Field Values
DATE_OF_BIRTH_TYPE
public static final String DATE_OF_BIRTH_TYPE
- See Also:
- Constant Field Values
DATE_OF_BIRTH_NAME
public static final String DATE_OF_BIRTH_NAME
- See Also:
- Constant Field Values
DATE_OF_BIRTH_DESC
public static final String DATE_OF_BIRTH_DESC
- See Also:
- Constant Field Values
GENDER_TYPE
public static final String GENDER_TYPE
- See Also:
- Constant Field Values
GENDER_NAME
public static final String GENDER_NAME
- See Also:
- Constant Field Values
GENDER_DESC
public static final String GENDER_DESC
- See Also:
- Constant Field Values
WEB_PAGE_TYPE
public static final String WEB_PAGE_TYPE
- See Also:
- Constant Field Values
WEB_PAGE_NAME
public static final String WEB_PAGE_NAME
- See Also:
- Constant Field Values
WEB_PAGE_DESC
public static final String WEB_PAGE_DESC
- See Also:
- Constant Field Values
PPID_TYPE
public static final String PPID_TYPE
- See Also:
- Constant Field Values
PPID_NAME
public static final String PPID_NAME
- See Also:
- Constant Field Values
PPID_DESC
public static final String PPID_DESC
- See Also:
- Constant Field Values
GENDER_MALE
public static final String GENDER_MALE
- See Also:
- Constant Field Values
GENDER_FEMALE
public static final String GENDER_FEMALE
- See Also:
- Constant Field Values
SelfIssuedCardClaims
public SelfIssuedCardClaims(List claimValues)
throws org.eclipse.higgins.icard.CardException
- Parameters:
claimValues - list of IClaim
- Throws:
org.eclipse.higgins.icard.CardException
setGivenName
public void setGivenName(String value)
setSurName
public void setSurName(String value)
setEmailAddress
public void setEmailAddress(String value)
setStreetAddress
public void setStreetAddress(String value)
setLocality
public void setLocality(String value)
setStateOrProvince
public void setStateOrProvince(String value)
setPostalCode
public void setPostalCode(String value)
setCountry
public void setCountry(String value)
setHomePhone
public void setHomePhone(String value)
setOtherPhone
public void setOtherPhone(String value)
setMobilePhone
public void setMobilePhone(String value)
setDateOfBirth
public void setDateOfBirth(String value)
setGender
public void setGender(String value)
setWebPage
public void setWebPage(String value)
setPrivatePersonalIdentifier
public void setPrivatePersonalIdentifier(String value)
getGivenName
public String getGivenName()
getSurName
public String getSurName()
getEmailAddress
public String getEmailAddress()
getStreetAddress
public String getStreetAddress()
getLocality
public String getLocality()
getStateOrProvince
public String getStateOrProvince()
getPostalCode
public String getPostalCode()
getCountry
public String getCountry()
getHomePhone
public String getHomePhone()
getOtherPhone
public String getOtherPhone()
getMobilePhone
public String getMobilePhone()
getDateOfBirth
public String getDateOfBirth()
getGender
public String getGender()
getWebPage
public String getWebPage()
getPrivatePersonalIdentifier
public String getPrivatePersonalIdentifier()
getClaimValueList
public ArrayList getClaimValueList(boolean skipEmptyValues)
throws org.eclipse.higgins.icard.CardException
- Returns list of
IClaim instances
- Parameters:
skipEmptyValues - If true only populated values will be returned,
otherwise all predefined self-issued values will be returned
- Returns:
-
- Throws:
org.eclipse.higgins.icard.CardException
getSupportedClaimTypeList
public static ArrayList getSupportedClaimTypeList()
getClaimType
public static org.eclipse.higgins.icard.common.ClaimType getClaimType(String type)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
getClaimType
public static org.eclipse.higgins.icard.common.ClaimType getClaimType(URI type)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
getSupportedTypesHash
public static Hashtable getSupportedTypesHash()
getGenderClaimValue
public static String getGenderClaimValue(String genderCode)
throws org.eclipse.higgins.icard.CardException
- Parameters:
genderCode - 0 - undefined gender, 1 - male, 2 - female
- Returns:
- the value of claim (male, female or undefined)
- Throws:
org.eclipse.higgins.icard.CardException
getGenderCode
public static String getGenderCode(String genderClaimValue)
throws org.eclipse.higgins.icard.CardException
- Parameters:
genderClaimValue - the value of gender claim (male, female or undefined)
- Returns:
- the code of gender (1 for male, 2 for female or 0 for undefined)
- Throws:
org.eclipse.higgins.icard.CardException
validateClaimValue
public static void validateClaimValue(String claimValue,
String claimType)
throws org.eclipse.higgins.icard.CardException
- Validates the value of claim
- Parameters:
claimValue - claimType -
- Throws:
org.eclipse.higgins.icard.CardException
getGenderValuesList
public static ArrayList getGenderValuesList()
- Returns:
convertICMDate
public static String convertICMDate(String dateICM)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
main
public static void main(String[] args)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException