org.eclipse.higgins.icard.common
Class Card
java.lang.Object
org.eclipse.higgins.icard.common.Card
- All Implemented Interfaces:
- org.eclipse.higgins.icard.ICard, org.eclipse.higgins.icard.IClaimContainer, org.eclipse.higgins.icard.IClaimTypeContainer
public abstract class Card
- extends Object
- implements org.eclipse.higgins.icard.ICard
|
Constructor Summary |
Card()
|
| Methods inherited from interface org.eclipse.higgins.icard.ICard |
applyUpdates, beginUpdates, cancelUpdates, getClaimByLocalName, getRequiredCredentials, getType, isEditable, isEditMode, setImage, toElement |
| Methods inherited from interface org.eclipse.higgins.icard.IClaimContainer |
createClaim, getClaim, getClaims, setClaim |
Card
public Card()
getName
public String getName()
- Specified by:
getName in interface org.eclipse.higgins.icard.ICard
setName
public void setName(String name)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setName in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
getID
public String getID()
- Specified by:
getID in interface org.eclipse.higgins.icard.ICard
setID
public void setID(URI id)
- Parameters:
id -
getIssuerName
public String getIssuerName()
- Specified by:
getIssuerName in interface org.eclipse.higgins.icard.ICard
setIssuerName
public void setIssuerName(String issuerName)
throws org.eclipse.higgins.icard.CardException
- Specified by:
setIssuerName in interface org.eclipse.higgins.icard.ICard
- Throws:
org.eclipse.higgins.icard.CardException
getIssuer
public String getIssuer()
- Specified by:
getIssuer in interface org.eclipse.higgins.icard.ICard
setIssuer
public void setIssuer(String issuer)
- Parameters:
issuer -
getImage
public byte[] getImage()
- Specified by:
getImage in interface org.eclipse.higgins.icard.ICard
setImage
public void setImage(byte[] image)
- Parameters:
image -
getImageType
public String getImageType()
- Specified by:
getImageType in interface org.eclipse.higgins.icard.ICard
setImageType
public void setImageType(String imageMimeType)
- Parameters:
imageMimeType -
getTimeIssued
public Date getTimeIssued()
- Specified by:
getTimeIssued in interface org.eclipse.higgins.icard.ICard
setTimeIssued
public void setTimeIssued(Date timeIssued)
throws org.eclipse.higgins.icard.CardException
- Parameters:
timeIssued -
- Throws:
org.eclipse.higgins.icard.CardException
getTimeExpires
public Date getTimeExpires()
- Specified by:
getTimeExpires in interface org.eclipse.higgins.icard.ICard
setTimeExpires
public void setTimeExpires(Date timeExpires)
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
setSupportedClaimTypes
public void setSupportedClaimTypes(List supportedClaimTypes)
- Parameters:
supportedClaimTypes -
getSupportedClaimTypesUris
public List getSupportedClaimTypesUris()
- Specified by:
getSupportedClaimTypesUris in interface org.eclipse.higgins.icard.ICard
getVersion
public String getVersion()
- Specified by:
getVersion in interface org.eclipse.higgins.icard.ICard
setVersion
public void setVersion(String version)
- Parameters:
version -
getSupportedTokenTypes
public List getSupportedTokenTypes()
- Specified by:
getSupportedTokenTypes in interface org.eclipse.higgins.icard.ICard
setSupportedTokenTypes
public void setSupportedTokenTypes(List supportedTokenTypes)
- Parameters:
supportedTokenTypes -
getProvider
public org.eclipse.higgins.icard.ICardProvider getProvider()
- Specified by:
getProvider in interface org.eclipse.higgins.icard.ICard
getTimeLastUpdated
public Date getTimeLastUpdated()
- Specified by:
getTimeLastUpdated in interface org.eclipse.higgins.icard.ICard
setTimeLastUpdated
public void setTimeLastUpdated(Date timeLastUpdated)
- Parameters:
timeLastUpdated -
isSelfIssued
public boolean isSelfIssued()
- Specified by:
isSelfIssued in interface org.eclipse.higgins.icard.ICard
setSelfIssued
public void setSelfIssued(boolean isSelfIssued)
- Parameters:
isSelfIssued -
getCUID
public org.eclipse.higgins.icard.CUID getCUID()
- Specified by:
getCUID in interface org.eclipse.higgins.icard.ICard
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.eclipse.higgins.icard.ICard
setDescription
public void setDescription(String description)
- Parameters:
description -
isClaimsRetrieved
public boolean isClaimsRetrieved()
- Specified by:
isClaimsRetrieved in interface org.eclipse.higgins.icard.ICard
setClaims
public void setClaims(List claims)
throws org.eclipse.higgins.icard.InvalidTypeException
- Sets a cache of claim values. Unless call to this method any attempts to
access claim values throws the
AuthenticationRequiredException.
This is a helper method used either by
ICardProvider.getICardByCUID(javax.security.auth.callback.CallbackHandler, CUID, org.eclipse.higgins.icard.auth.ICredential)
or card itself when fully loaded card is requested.
- Parameters:
claims -
- Throws:
org.eclipse.higgins.icard.InvalidTypeException
isFormatSupported
public boolean isFormatSupported(org.eclipse.higgins.icard.io.IElementFormat format)
- Specified by:
isFormatSupported in interface org.eclipse.higgins.icard.ICard