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

java.lang.Object
  extended byorg.eclipse.higgins.icard.provider.cardspace.common.utils.CardUtils

public class CardUtils
extends Object


Constructor Summary
CardUtils()
           
 
Method Summary
static boolean isSelfIssued(Element card)
           
static boolean isStringEmpty(String str)
           
static URI parseCardId(Element card)
           
static byte[] parseCardImage(Element card)
           
static String parseCardImageType(Element card)
           
static String parseCardName(Element card)
           
static String parseCardVersion(Element card)
           
static List parseClaimTypes(Element card)
           
static HashMap parseClaimValues(Element privateData)
           
static byte[] parseHashSalt(Element card)
           
static String parseIssuer(Element card)
           
static byte[] parseIssuerID(Element card)
           
static String parseIssuerName(Element card)
           
static byte[] parseMasterKey(Element roamingCard)
           
static byte[] parsePinDigest(Element metaData)
           
static Element parsePrivacyNotice(Element card)
           
static Boolean parseRequireAppliesTo(Element card)
           
static List parseSupportedTokenTypes(Element card)
           
static Date parseTimeExpires(Element card)
           
static Date parseTimeIssued(Element card)
           
static Date parseTimeLastUpdated(Element card)
           
static List parseTokenServiceList(Element card)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardUtils

public CardUtils()
Method Detail

parseCardId

public static URI parseCardId(Element card)
                       throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseCardVersion

public static String parseCardVersion(Element card)
                               throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseCardName

public static String parseCardName(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseCardImage

public static byte[] parseCardImage(Element card)
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseCardImageType

public static String parseCardImageType(Element card)
                                 throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseIssuer

public static String parseIssuer(Element card)
                          throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseIssuerName

public static String parseIssuerName(Element card)
                              throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseIssuerID

public static byte[] parseIssuerID(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseTimeIssued

public static Date parseTimeIssued(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseTimeExpires

public static Date parseTimeExpires(Element card)
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseSupportedTokenTypes

public static List parseSupportedTokenTypes(Element card)
                                     throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseClaimTypes

public static List parseClaimTypes(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseTokenServiceList

public static List parseTokenServiceList(Element card)
                                  throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseRequireAppliesTo

public static Boolean parseRequireAppliesTo(Element card)
                                     throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parsePrivacyNotice

public static Element parsePrivacyNotice(Element card)
                                  throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseHashSalt

public static byte[] parseHashSalt(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseTimeLastUpdated

public static Date parseTimeLastUpdated(Element card)
                                 throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseMasterKey

public static byte[] parseMasterKey(Element roamingCard)
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parsePinDigest

public static byte[] parsePinDigest(Element metaData)
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

parseClaimValues

public static HashMap parseClaimValues(Element privateData)
                                throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

isSelfIssued

public static boolean isSelfIssued(Element card)
                            throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

isStringEmpty

public static boolean isStringEmpty(String str)