org.eclipse.higgins.icard.provider.cardspace.personal
Class IdASBasedPersonalCardProvider
java.lang.Object
org.eclipse.higgins.icard.common.BasicCardProvider
org.eclipse.higgins.icard.provider.cardspace.common.PersonalCardProvider
org.eclipse.higgins.icard.provider.cardspace.personal.IdASBasedPersonalCardProvider
- All Implemented Interfaces:
- org.eclipse.higgins.icard.ICardProvider, org.eclipse.higgins.registry.IServiceProvider
- public class IdASBasedPersonalCardProvider
- extends org.eclipse.higgins.icard.provider.cardspace.common.PersonalCardProvider
- implements org.eclipse.higgins.icard.ICardProvider
Implementation of personal (self-issued) CardSpace-interoperable ICard
provider based on IdAS context
| Fields inherited from interface org.eclipse.higgins.icard.ICardProvider |
CONTEXT_REF_PROP_NAME, CONTEXT_SCHEMA_FILE_PROP_NAME, CONTEXT_SCHEMA_URL_PROP_NAME, IMAGE_URL_PROP_NAME |
| Methods inherited from class org.eclipse.higgins.icard.provider.cardspace.common.PersonalCardProvider |
canImportICard, getICardByCUID, getSupportedTypes |
| Methods inherited from class org.eclipse.higgins.icard.common.BasicCardProvider |
exportICards, getICardsByFormat, getICardsByPolicy |
| Methods inherited from interface org.eclipse.higgins.icard.ICardProvider |
canImportICard, exportICards, getICardByCUID, getICardsByFormat, getICardsByPolicy, getSupportedTypes |
IdASBasedPersonalCardProvider
public IdASBasedPersonalCardProvider()
throws Exception
setID
public void setID(String id)
throws Exception
- Specified by:
setID in interface org.eclipse.higgins.registry.IServiceProvider
- Throws:
Exception
getConfiguration
public org.eclipse.higgins.registry.IConfiguration getConfiguration()
- Specified by:
getConfiguration in interface org.eclipse.higgins.registry.IServiceProvider
getICards
public Iterator getICards(CallbackHandler authHandler)
throws org.eclipse.higgins.icard.CardException
- Specified by:
getICards in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
importCard
public org.eclipse.higgins.icard.ICard importCard(CallbackHandler authHandler,
String filename)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
deleteCard
public void deleteCard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICard card)
throws org.eclipse.higgins.icard.CardException
- Specified by:
deleteCard in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
getID
public String getID()
- Specified by:
getID in interface org.eclipse.higgins.registry.IServiceProvider
getName
public String getName()
- Specified by:
getName in interface org.eclipse.higgins.icard.ICardProvider
canCreateCard
public boolean canCreateCard(CallbackHandler authHandler,
String id,
Properties props)
- Specified by:
canCreateCard in interface org.eclipse.higgins.icard.ICardProvider
createCard
public org.eclipse.higgins.icard.ICard createCard(CallbackHandler authHandler,
String id,
Properties props)
throws org.eclipse.higgins.icard.CardException
- Specified by:
createCard in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.eclipse.higgins.icard.ICardProvider
importICard
public org.eclipse.higgins.icard.ICard importICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.io.IElement element)
throws org.eclipse.higgins.icard.CardException
- Specified by:
importICard in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
getICardByCUID
public org.eclipse.higgins.icard.ICard getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
throws org.eclipse.higgins.icard.CardException
- Specified by:
getICardByCUID in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
getPictureMIMEType
public String getPictureMIMEType(byte[] picure)
createCard
public org.eclipse.higgins.icard.ICard createCard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICardTemplate template)
throws org.eclipse.higgins.icard.CardException
- Specified by:
createCard in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.CardException
getCardCreationTemplates
public org.eclipse.higgins.icard.ICardTemplate[] getCardCreationTemplates(CallbackHandler authHandler)
- Specified by:
getCardCreationTemplates in interface org.eclipse.higgins.icard.ICardProvider