org.eclipse.higgins.icard.provider.cardspace.managed.xml
Class XMLBasedManagedCardProvider
java.lang.Object
org.eclipse.higgins.icard.common.BasicCardProvider
org.eclipse.higgins.icard.provider.cardspace.common.ManagedCardProvider
org.eclipse.higgins.icard.provider.cardspace.managed.xml.XMLBasedManagedCardProvider
- All Implemented Interfaces:
- org.eclipse.higgins.icard.ICardProvider, org.eclipse.higgins.registry.IServiceProvider
- public class XMLBasedManagedCardProvider
- extends org.eclipse.higgins.icard.provider.cardspace.common.ManagedCardProvider
- implements org.eclipse.higgins.icard.ICardProvider
Implementation of managed CardSpace-interoperable ICard provider stored in
xml file form
| 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 |
|
Method Summary |
boolean |
canCreateCard(CallbackHandler authHandler,
String id,
Properties props)
|
boolean |
canImportICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.io.IElement element)
|
org.eclipse.higgins.icard.ICard |
createCard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICardTemplate template)
|
org.eclipse.higgins.icard.ICard |
createCard(CallbackHandler authHandler,
String id,
Properties props)
|
void |
deleteCard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICard card)
|
org.eclipse.higgins.registry.IConfiguration |
getConfiguration()
|
String |
getDescription()
|
org.eclipse.higgins.icard.ICard |
getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
|
org.eclipse.higgins.icard.ICard |
getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid,
org.eclipse.higgins.icard.auth.ICredential userCredential)
|
org.eclipse.higgins.icard.ICard |
getICardByCUID(CallbackHandler authHandler,
String CUID)
|
Iterator |
getICards(CallbackHandler authHandler)
|
String |
getID()
|
String |
getName()
|
Class[] |
getSupportedTypes()
The only supported types are IManagedInformationCard and
IPersonalInformationCard |
org.eclipse.higgins.icard.ICard |
importCard(CallbackHandler authHandler,
String filename)
|
org.eclipse.higgins.icard.ICard |
importICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.io.IElement element)
|
boolean |
isSelfIssued(Element card)
|
void |
setID(String id)
|
void |
updateCard(XMLBasedManagedCard card)
|
void |
updateCard(XMLBasedPersonalCard card)
|
| Methods inherited from class org.eclipse.higgins.icard.provider.cardspace.common.ManagedCardProvider |
getCardCreationTemplates, getCardCreationTemplatesByID |
| Methods inherited from class org.eclipse.higgins.icard.common.BasicCardProvider |
exportICards, getICardsByFormat, getICardsByPolicy |
| Methods inherited from interface org.eclipse.higgins.icard.ICardProvider |
exportICards, getCardCreationTemplates, getCardCreationTemplatesByID, getICardsByFormat, getICardsByPolicy |
XMLBasedManagedCardProvider
public XMLBasedManagedCardProvider()
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
isSelfIssued
public boolean isSelfIssued(Element card)
throws org.eclipse.higgins.icard.CardException
- Returns:
-
- Throws:
org.eclipse.higgins.icard.CardException
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
getICardByCUID
public org.eclipse.higgins.icard.ICard getICardByCUID(CallbackHandler authHandler,
String CUID)
throws org.eclipse.higgins.icard.CardException
- 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
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
importCard
public org.eclipse.higgins.icard.ICard importCard(CallbackHandler authHandler,
String filename)
throws org.eclipse.higgins.icard.CardException
- 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
getDescription
public String getDescription()
- Specified by:
getDescription 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
canImportICard
public boolean canImportICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.io.IElement element)
- Specified by:
canImportICard 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
updateCard
public void updateCard(XMLBasedManagedCard card)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
updateCard
public void updateCard(XMLBasedPersonalCard card)
throws org.eclipse.higgins.icard.CardException
- Throws:
org.eclipse.higgins.icard.CardException
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
getICardByCUID
public org.eclipse.higgins.icard.ICard getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid,
org.eclipse.higgins.icard.auth.ICredential userCredential)
throws org.eclipse.higgins.icard.AuthenticationException,
org.eclipse.higgins.icard.CardException
- Specified by:
getICardByCUID in interface org.eclipse.higgins.icard.ICardProvider
- Throws:
org.eclipse.higgins.icard.AuthenticationException
org.eclipse.higgins.icard.CardException
getSupportedTypes
public Class[] getSupportedTypes()
- The only supported types are
IManagedInformationCard and
IPersonalInformationCard
- Specified by:
getSupportedTypes in interface org.eclipse.higgins.icard.ICardProvider