|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICard
| Method Summary | |
|---|---|
void |
applyUpdates()
Applies an updates made to this ICard object to the
backing data store. |
void |
beginUpdates()
Puts this ICard object into edit mode when an update
operations on card or on any contained elements are allowed. |
void |
cancelUpdates()
Cancels any updates made to this ICard object or any
contained elements and terminate edit mode. |
IClaim |
getClaimByLocalName(String typeLocalName)
|
CUID |
getCUID()
Gets the unique identifier of the i-card in the i-card registry. |
String |
getDescription()
|
String |
getID()
Gets the ID of the i-card. |
byte[] |
getImage()
Returns byte representation of a background image of the card. |
String |
getImageType()
Return the mime type of the background image (JPEG or GIF). |
String |
getIssuer()
Name of the issuer of the card. |
String |
getIssuerName()
Returns the human friendly name of the card issuer, originator, creator. |
String |
getName()
Return the human friendly name of the card. |
ICardProvider |
getProvider()
Should it be here? / |
ICredentialDescriptor[] |
getRequiredCredentials()
Returns an array of credential descriptors which should be used to request protected clam's information. |
List |
getSupportedClaimTypesUris()
Return a list of all possible types of claims (as String) that are supported. |
List |
getSupportedTokenTypes()
|
Date |
getTimeExpires()
Returns (optionally) the time after which the card should be considered expired, invalid. |
Date |
getTimeIssued()
Returns when the card was first issued, created, orginated. |
Date |
getTimeLastUpdated()
Set the expiration date and time |
String |
getType()
Returns the type of this i-card (e.g. |
String |
getVersion()
Return the version of the card. |
boolean |
isClaimsRetrieved()
Checks whether this card already has claims retrieved or it is necessary to make additional call to ICardProvider.getICardByCUID(javax.security.auth.callback.CallbackHandler, CUID, org.eclipse.higgins.icard.auth.ICredential)
to retrieve them. |
boolean |
isEditable()
Determines whether this ICard could be edited by the user. |
boolean |
isEditMode()
Determines wheter this ICard object is in edit mode. |
boolean |
isFormatSupported(IElementFormat format)
|
boolean |
isSelfIssued()
Indicates that this card has been issued by user (claim values can be editable) |
void |
setImage(byte[] newImage,
String newImageType)
Used to change the picture associated with this card |
void |
setIssuerName(String name)
Sets the card's human friendly name of the card issuer |
void |
setName(String newName)
Used to change the name of the card |
void |
setTimeExpires(Date date)
|
IElement |
toElement(IElementFormat format)
|
| Methods inherited from interface org.eclipse.higgins.icard.IClaimContainer |
|---|
createClaim, getClaim, getClaims, setClaim |
| Method Detail |
|---|
String getType()
String getID()
The ID of the i-card must be unique per i-card provider but different i-card providers could contains i-cards with the same ID however.
CUID getCUID()
Because different i-card providers could contains i-cards with the same ID, it could be difficult to retrieve the same i-card from the i-card registry again using i-card ID.
The UUID must be unique over all i-card providers in the i-card registry to allow retrieve the same i-card from the i-card registry multiple times.
Current implementation of i-card registry assumes that ICard.UUID must equals to ICardProvider.ID + "#" + ICard.ID
String getVersion()
String getName()
byte[] getImage()
String getImageType()
String getIssuer()
String getIssuerName()
Date getTimeIssued()
Date getTimeExpires()
List getSupportedClaimTypesUris()
IClaim getClaimByLocalName(String typeLocalName)
throws AuthenticationRequiredException,
InvalidTypeException,
CardException
typeLocalName -
AuthenticationRequiredException - TODO
InvalidTypeException - TODO
CardException - TODOICardProvider getProvider()
String getDescription()
void setName(String newName)
throws CardException
newName -
CardException
void setImage(byte[] newImage,
String newImageType)
throws CardException
newImage - newImageType -
CardException
void setIssuerName(String name)
throws CardException
name -
CardNotOpenException
CardException
void setTimeExpires(Date date)
throws CardException
date -
CardNotOpenException
CardExceptionList getSupportedTokenTypes()
boolean isSelfIssued()
Date getTimeLastUpdated()
CardExceptionboolean isEditable()
ICard could be edited by the user.
General idea is that managed cards (isSelfIssued() == false)
can not be edited by the user but some types of managed cards could also
allow the user to edit their data.
void beginUpdates()
throws InvalidStateException
ICard object into edit mode when an update
operations on card or on any contained elements are allowed.
Note that any update operation on this ICard prior to this
method call and after either applyUpdates() or
cancelUpdates() throws the InvalidStateException.
InvalidStateException - if this ICard object is in edit mode already.
void cancelUpdates()
throws InvalidStateException
ICard object or any
contained elements and terminate edit mode. Reloads card's data from
backing data store.
InvalidStateException - if this ICard object is not in edit mode.
void applyUpdates()
throws InvalidStateException,
CardException
ICard object to the
backing data store.
On success terminate edit mode of this ICard object.
On error this ICard object remains in edit mode.
InvalidStateException - if this ICard object is not in edit mode.
CardException - if an error occurs at update backing data store.boolean isEditMode()
ICard object is in edit mode.
boolean isClaimsRetrieved()
ICardProvider.getICardByCUID(javax.security.auth.callback.CallbackHandler, CUID, org.eclipse.higgins.icard.auth.ICredential)
to retrieve them.
ICredentialDescriptor[] getRequiredCredentials()
ICardProvider.getICardByCUID(javax.security.auth.callback.CallbackHandler,
CUID, org.eclipse.higgins.icard.auth.ICredential)boolean isFormatSupported(IElementFormat format)
IElement toElement(IElementFormat format)
throws CardException,
CardIOException,
UnsupportedElementFormatException
CardException
CardIOException
UnsupportedElementFormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||