org.eclipse.higgins.icard.provider.cardspace.common.utils
Class SelfIssuedCardClaims

java.lang.Object
  extended by org.eclipse.higgins.icard.provider.cardspace.common.utils.SelfIssuedCardClaims

public class SelfIssuedCardClaims
extends Object


Field Summary
static String COUNTRY_DESC
           
static String COUNTRY_NAME
           
static String COUNTRY_TYPE
           
static String DATE_OF_BIRTH_DESC
           
static String DATE_OF_BIRTH_NAME
           
static String DATE_OF_BIRTH_TYPE
           
static String EMAIL_ADDRESS_DESC
           
static String EMAIL_ADDRESS_NAME
           
static String EMAIL_ADDRESS_TYPE
           
static String GENDER_DESC
           
static String GENDER_FEMALE
           
static String GENDER_MALE
           
static String GENDER_NAME
           
static String GENDER_TYPE
           
static String GIVEN_NAME_DESC
           
static String GIVEN_NAME_NAME
           
static String GIVEN_NAME_TYPE
           
static String HOME_PHONE_DESC
           
static String HOME_PHONE_NAME
           
static String HOME_PHONE_TYPE
           
static String LOCALITY_DESC
           
static String LOCALITY_NAME
           
static String LOCALITY_TYPE
           
static String MOBILE_PHONE_DESC
           
static String MOBILE_PHONE_NAME
           
static String MOBILE_PHONE_TYPE
           
static String OTHER_PHONE_DESC
           
static String OTHER_PHONE_NAME
           
static String OTHER_PHONE_TYPE
           
static String POSTAL_CODE_DESC
           
static String POSTAL_CODE_NAME
           
static String POSTAL_CODE_TYPE
           
static String PPID_DESC
           
static String PPID_NAME
           
static String PPID_TYPE
           
static String STATE_OR_PROVINCE_DESC
           
static String STATE_OR_PROVINCE_NAME
           
static String STATE_OR_PROVINCE_TYPE
           
static String STREET_ADDRESS_DESC
           
static String STREET_ADDRESS_NAME
           
static String STREET_ADDRESS_TYPE
           
static String SURNAME_DESC
           
static String SURNAME_NAME
           
static String SURNAME_TYPE
           
static String WEB_PAGE_DESC
           
static String WEB_PAGE_NAME
           
static String WEB_PAGE_TYPE
           
 
Constructor Summary
SelfIssuedCardClaims(List claimValues)
           
 
Method Summary
static String convertICMDate_TEST(String dateICM)
           
static org.eclipse.higgins.icard.common.ClaimType getClaimType(String type)
           
static org.eclipse.higgins.icard.common.ClaimType getClaimType(URI type)
           
 ArrayList getClaimValueList(boolean skipEmptyValues)
          Returns list of IClaim instances
 String getCountry()
           
 String getDateOfBirth()
           
 String getEmailAddress()
           
 String getGender()
           
static String getGenderClaimValue_TEST(String genderCode)
           
static String getGenderCode_TEST(String genderClaimValue)
           
static ArrayList getGenderValuesList_TEST()
           
 String getGivenName()
           
 String getHomePhone()
           
 String getLocality()
           
 String getMobilePhone()
           
 String getOtherPhone()
           
 String getPostalCode()
           
 String getPrivatePersonalIdentifier()
           
 String getStateOrProvince()
           
 String getStreetAddress()
           
static ArrayList getSupportedClaimTypeList()
           
static Hashtable getSupportedTypesHash()
           
 String getSurName()
           
 String getWebPage()
           
static void main(String[] args)
           
 void setCountry(String value)
           
 void setDateOfBirth(String value)
           
 void setEmailAddress(String value)
           
 void setGender(String value)
           
 void setGivenName(String value)
           
 void setHomePhone(String value)
           
 void setLocality(String value)
           
 void setMobilePhone(String value)
           
 void setOtherPhone(String value)
           
 void setPostalCode(String value)
           
 void setPrivatePersonalIdentifier(String value)
           
 void setStateOrProvince(String value)
           
 void setStreetAddress(String value)
           
 void setSurName(String value)
           
 void setWebPage(String value)
           
static void validateClaimValue_TEST(String claimValue, String claimType)
          Validates the value of claim
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SelfIssuedCardClaims

public SelfIssuedCardClaims(List claimValues)
                     throws org.eclipse.higgins.icard.CardException
Parameters:
claimValues - list of IClaim
Throws:
org.eclipse.higgins.icard.CardException
Method Detail

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_TEST

public static String getGenderClaimValue_TEST(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_TEST

public static String getGenderCode_TEST(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_TEST

public static void validateClaimValue_TEST(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_TEST

public static ArrayList getGenderValuesList_TEST()
Returns:

convertICMDate_TEST

public static String convertICMDate_TEST(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