org.eclipse.higgins.iss.cardspace.util
Class VirtualPersonalCard
java.lang.Object
org.eclipse.higgins.iss.cardspace.util.VirtualPersonalCard
- 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
- public class VirtualPersonalCard
- extends Object
- implements org.eclipse.higgins.icard.IPersonalInformationCard
issuer_
public static final String issuer_
- See Also:
- Constant Field Values
issuerName_
public static final String issuerName_
- See Also:
- Constant Field Values
VirtualPersonalCard
public VirtualPersonalCard(Hashtable claims)
throws Exception
getClaimListContextID
public URI getClaimListContextID()
- Specified by:
getClaimListContextID in interface org.eclipse.higgins.icard.IPersonalInformationCard
getClaimListEntityID
public String getClaimListEntityID()
- Specified by:
getClaimListEntityID in interface org.eclipse.higgins.icard.IPersonalInformationCard
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
setClaimList
public void setClaimList(List claims)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
setPinCode
public void setPinCode(org.eclipse.higgins.icard.auth.IPinCodeCredential pinCodeCredential)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setPinCode in interface org.eclipse.higgins.icard.IPersonalInformationCard
- Throws:
org.eclipse.higgins.icard.CardException
getHashSalt
public byte[] getHashSalt()
- Specified by:
getHashSalt in interface org.eclipse.higgins.icard.IInformationCard
getMasterKey
public byte[] getMasterKey()
throws org.eclipse.higgins.icard.CardException
- Specified by:
getMasterKey in interface org.eclipse.higgins.icard.IInformationCard
- Throws:
org.eclipse.higgins.icard.CardException
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
applyUpdates
public void applyUpdates()
throws org.eclipse.higgins.icard.InvalidStateException,
org.eclipse.higgins.icard.CardException
- Specified by:
applyUpdates in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.InvalidStateException
org.eclipse.higgins.icard.CardException
beginUpdates
public void beginUpdates()
throws org.eclipse.higgins.icard.InvalidStateException
- Specified by:
beginUpdates in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.InvalidStateException
cancelUpdates
public void cancelUpdates()
throws org.eclipse.higgins.icard.InvalidStateException
- Specified by:
cancelUpdates in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.InvalidStateException
getCUID
public org.eclipse.higgins.icard.CUID getCUID()
- Specified by:
getCUID in interface org.eclipse.higgins.icard.ICard
getClaimByLocalName
public org.eclipse.higgins.icard.IClaim getClaimByLocalName(String typeLocalName)
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
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.eclipse.higgins.icard.ICard
getID
public String getID()
- Specified by:
getID in interface org.eclipse.higgins.icard.ICard
getImage
public byte[] getImage()
- Specified by:
getImage in interface org.eclipse.higgins.icard.ICard
getImageType
public String getImageType()
- Specified by:
getImageType in interface org.eclipse.higgins.icard.ICard
getIssuer
public String getIssuer()
- Specified by:
getIssuer in interface org.eclipse.higgins.icard.ICard
getIssuerName
public String getIssuerName()
- Specified by:
getIssuerName in interface org.eclipse.higgins.icard.ICard
getName
public String getName()
- Specified by:
getName in interface org.eclipse.higgins.icard.ICard
getProvider
public org.eclipse.higgins.icard.ICardProvider getProvider()
- Specified by:
getProvider in interface org.eclipse.higgins.icard.ICard
getSupportedClaimTypesUris
public List getSupportedClaimTypesUris()
- Specified by:
getSupportedClaimTypesUris in interface org.eclipse.higgins.icard.ICard
getSupportedTokenTypes
public List getSupportedTokenTypes()
- Specified by:
getSupportedTokenTypes in interface org.eclipse.higgins.icard.ICard
getTimeExpires
public Date getTimeExpires()
- Specified by:
getTimeExpires in interface org.eclipse.higgins.icard.ICard
getTimeIssued
public Date getTimeIssued()
- Specified by:
getTimeIssued in interface org.eclipse.higgins.icard.ICard
getTimeLastUpdated
public Date getTimeLastUpdated()
- Specified by:
getTimeLastUpdated in interface org.eclipse.higgins.icard.ICard
getType
public String getType()
- Specified by:
getType in interface org.eclipse.higgins.icard.ICard
getVersion
public String getVersion()
- Specified by:
getVersion in interface org.eclipse.higgins.icard.ICard
isEditMode
public boolean isEditMode()
- Specified by:
isEditMode in interface org.eclipse.higgins.icard.ICard
isEditable
public boolean isEditable()
- Specified by:
isEditable in interface org.eclipse.higgins.icard.ICard
isSelfIssued
public boolean isSelfIssued()
- Specified by:
isSelfIssued in interface org.eclipse.higgins.icard.ICard
setImage
public void setImage(byte[] newImage,
String newImageType)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setImage in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
setIssuerName
public void setIssuerName(String name)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setIssuerName in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
setName
public void setName(String newName)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setName in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
setTimeExpires
public void setTimeExpires(Date date)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setTimeExpires in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
getSupportedClaimTypes
public Iterator getSupportedClaimTypes()
- Specified by:
getSupportedClaimTypes in interface org.eclipse.higgins.icard.IClaimTypeContainer
createClaim
public org.eclipse.higgins.icard.IClaim createClaim(String type)
throws org.eclipse.higgins.icard.InvalidTypeException,
org.eclipse.higgins.icard.ReadOnlyObjectException
- Specified by:
createClaim in interface org.eclipse.higgins.icard.IClaimContainer
- Throws:
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.ReadOnlyObjectException
getClaim
public org.eclipse.higgins.icard.IClaim getClaim(String type)
throws org.eclipse.higgins.icard.InvalidTypeException
- Specified by:
getClaim in interface org.eclipse.higgins.icard.IClaimContainer
- Throws:
org.eclipse.higgins.icard.InvalidTypeException
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
setClaim
public org.eclipse.higgins.icard.IClaim setClaim(org.eclipse.higgins.icard.IClaim copyFrom)
throws org.eclipse.higgins.icard.InvalidClaimException,
org.eclipse.higgins.icard.InvalidTypeException,
org.eclipse.higgins.icard.ReadOnlyObjectException
- Specified by:
setClaim in interface org.eclipse.higgins.icard.IClaimContainer
- Throws:
org.eclipse.higgins.icard.InvalidClaimException
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.ReadOnlyObjectException
getRequiredCredentials
public org.eclipse.higgins.icard.auth.ICredentialDescriptor[] getRequiredCredentials()
- Specified by:
getRequiredCredentials in interface org.eclipse.higgins.icard.ICard
isClaimsRetrieved
public boolean isClaimsRetrieved()
- Specified by:
isClaimsRetrieved in interface org.eclipse.higgins.icard.ICard
isFormatSupported
public boolean isFormatSupported(org.eclipse.higgins.icard.io.IElementFormat format)
- Specified by:
isFormatSupported in interface org.eclipse.higgins.icard.ICard
getIssuerID
public byte[] getIssuerID()
- Specified by:
getIssuerID in interface org.eclipse.higgins.icard.IInformationCard
addExtension
public org.eclipse.higgins.icard.IInformationCardExtension addExtension(org.eclipse.higgins.icard.io.IElement extension)
throws org.eclipse.higgins.icard.CardException
- Specified by:
addExtension in interface org.eclipse.higgins.icard.IInformationCard
- Throws:
org.eclipse.higgins.icard.CardException
getExtensions
public org.eclipse.higgins.icard.IInformationCardExtension[] getExtensions()
- Specified by:
getExtensions in interface org.eclipse.higgins.icard.IInformationCard
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensions in interface org.eclipse.higgins.icard.IInformationCard
removeExtension
public void removeExtension(org.eclipse.higgins.icard.IInformationCardExtension extension)
throws org.eclipse.higgins.icard.CardException
- Specified by:
removeExtension in interface org.eclipse.higgins.icard.IInformationCard
- Throws:
org.eclipse.higgins.icard.CardException