org.eclipse.higgins.icard.provider.cardspace.common
Class PersonalCard
java.lang.Object
org.eclipse.higgins.icard.common.Card
org.eclipse.higgins.icard.provider.cardspace.common.InformationCard
org.eclipse.higgins.icard.provider.cardspace.common.PersonalCard
- All Implemented Interfaces:
- org.eclipse.higgins.icard.ICard, org.eclipse.higgins.icard.IClaimContainer, org.eclipse.higgins.icard.IClaimTypeContainer, org.eclipse.higgins.icard.IInformationCard, org.eclipse.higgins.icard.IPersonalInformationCard
- Direct Known Subclasses:
- PCardEntity
public abstract class PersonalCard
- extends InformationCard
- implements org.eclipse.higgins.icard.IPersonalInformationCard
| Methods inherited from class org.eclipse.higgins.icard.common.Card |
getCUID, getDescription, getID, getImage, getImageType, getIssuer, getIssuerName, getName, getProvider, getSupportedClaimTypes, getSupportedClaimTypesUris, getSupportedTokenTypes, getTimeExpires, getTimeIssued, getTimeLastUpdated, getVersion, isClaimsRetrieved, isFormatSupported, isSelfIssued, setClaims, setDescription, setID, setImage, setImageType, setIssuer, setIssuerName, setName, setSelfIssued, setSupportedClaimTypes, setSupportedTokenTypes, setTimeExpires, setTimeIssued, setTimeLastUpdated, setVersion |
| Methods inherited from interface org.eclipse.higgins.icard.IPersonalInformationCard |
setPinCode |
| Methods inherited from interface org.eclipse.higgins.icard.IInformationCard |
addExtension, getExtensions, getHashSalt, getIssuerID, getMasterKey, getRawMasterKey, hasExtensions, removeExtension |
| Methods inherited from interface org.eclipse.higgins.icard.ICard |
applyUpdates, beginUpdates, cancelUpdates, getCUID, getDescription, getID, getImage, getImageType, getIssuer, getIssuerName, getName, getProvider, getSupportedClaimTypesUris, getSupportedTokenTypes, getTimeExpires, getTimeIssued, getTimeLastUpdated, getVersion, isClaimsRetrieved, isEditable, isEditMode, isFormatSupported, isSelfIssued, setImage, setIssuerName, setName, setTimeExpires |
| Methods inherited from interface org.eclipse.higgins.icard.IClaimContainer |
createClaim, setClaim |
ISSUER_SELF
public static String ISSUER_SELF
NO_PIN
public static final int NO_PIN
- See Also:
- Constant Field Values
LOCKED
public static final int LOCKED
- See Also:
- Constant Field Values
UNLOCKED
public static final int UNLOCKED
- See Also:
- Constant Field Values
PersonalCard
public PersonalCard()
initFromXML
public void initFromXML(Element card)
throws org.eclipse.higgins.icard.CardException,
DOMException
- Parameters:
card -
- Throws:
org.eclipse.higgins.icard.CardException
DOMException
getClaimListContextID
public URI getClaimListContextID()
- Specified by:
getClaimListContextID in interface org.eclipse.higgins.icard.IPersonalInformationCard
- Parameters:
privateData -
- Throws:
org.eclipse.higgins.icard.CardException
getClaimListEntityID
public String getClaimListEntityID()
- Specified by:
getClaimListEntityID in interface org.eclipse.higgins.icard.IPersonalInformationCard
toElement
public org.eclipse.higgins.icard.io.IElement toElement(org.eclipse.higgins.icard.io.IElementFormat format)
throws org.eclipse.higgins.icard.CardException,
org.eclipse.higgins.icard.io.CardIOException,
org.eclipse.higgins.icard.io.UnsupportedElementFormatException
- Specified by:
toElement in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.io.CardIOException
org.eclipse.higgins.icard.io.UnsupportedElementFormatException
getPinDigest
public byte[] getPinDigest()
throws org.eclipse.higgins.icard.CardException
- Specified by:
getPinDigest in interface org.eclipse.higgins.icard.IPersonalInformationCard
- Throws:
org.eclipse.higgins.icard.CardException
setPinDigest
public void setPinDigest(byte[] pinDigest)
getClaim
public org.eclipse.higgins.icard.IClaim getClaim(String type)
throws org.eclipse.higgins.icard.AuthenticationRequiredException,
org.eclipse.higgins.icard.InvalidTypeException,
org.eclipse.higgins.icard.CardException
- Specified by:
getClaim in interface org.eclipse.higgins.icard.IClaimContainer
- Throws:
org.eclipse.higgins.icard.AuthenticationRequiredException
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.CardException
getClaimByLocalName
public org.eclipse.higgins.icard.IClaim getClaimByLocalName(String shortTypeName)
throws org.eclipse.higgins.icard.AuthenticationRequiredException,
org.eclipse.higgins.icard.InvalidTypeException,
org.eclipse.higgins.icard.CardException
- Specified by:
getClaimByLocalName in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.AuthenticationRequiredException
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.CardException
getClaims
public Iterator getClaims()
throws org.eclipse.higgins.icard.CardException
- Specified by:
getClaims in interface org.eclipse.higgins.icard.IClaimContainer
- Throws:
org.eclipse.higgins.icard.CardException
getRequiredCredentials
public org.eclipse.higgins.icard.auth.ICredentialDescriptor[] getRequiredCredentials()
- Specified by:
getRequiredCredentials in interface org.eclipse.higgins.icard.ICard
getPinStatus
public int getPinStatus()
validatePINCode
public abstract boolean validatePINCode(String pinCode)
throws Exception
- Validate a user input pin code
- Parameters:
pinCode -
- Returns:
-
- Throws:
UnsupportedEncodingException
NoSuchAlgorithmException
Exception
lock
public abstract void lock(org.eclipse.higgins.icard.auth.IPinCodeCredential credential)
throws Exception
- If the card is not locked, this method protect the card by PIN code.
- Parameters:
credential -
- Throws:
Exception
unlock
public abstract void unlock(org.eclipse.higgins.icard.auth.IPinCodeCredential credential)
throws Exception
- If the card is locked by PIN code, this method unlock the claim values
and the master key.
- Parameters:
credential -
- Throws:
Exception
getType
public String getType()
- Specified by:
getType in interface org.eclipse.higgins.icard.ICard- Overrides:
getType in class InformationCard
getDirtyClaims
public Map getDirtyClaims()
- Specified by:
getDirtyClaims in interface org.eclipse.higgins.icard.IPersonalInformationCard
setDirtyClaims
public void setDirtyClaims(Map dirtyClaims)