org.eclipse.higgins.icard.provider.cardspace.managed
Class IdASBasedManagedCardProvider

java.lang.Object
  extended byorg.eclipse.higgins.icard.provider.cardspace.managed.IdASBasedManagedCardProvider
All Implemented Interfaces:
org.eclipse.higgins.icard.ICardProvider, org.eclipse.higgins.registry.IServiceProvider

public class IdASBasedManagedCardProvider
extends Object
implements org.eclipse.higgins.icard.ICardProvider

Implementation of managed CardSpace-interoperable ICard provider based on IdAS context


Field Summary
 
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
 
Constructor Summary
IdASBasedManagedCardProvider()
           
 
Method Summary
 boolean canCreateCard(CallbackHandler authHandler, String id, Properties props)
           
 boolean canImportICard(CallbackHandler authHandler, Element card)
           
 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)
           
 void exportCards(CallbackHandler authHandler, Iterator cards, OutputStream out)
           
 void exportICard(CallbackHandler authHandler, org.eclipse.higgins.icard.ICard card, Element root)
           
 org.eclipse.higgins.icard.ICardTemplate[] getCardCreationTemplates(CallbackHandler authHandler)
           
 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)
           
 org.eclipse.higgins.icard.ICard getICardByID(CallbackHandler authHandler, String UUID)
           
 Iterator getICards(CallbackHandler authHandler, org.eclipse.higgins.icard.IPolicy policy)
           
 String getID()
           
 String getName()
           
 Class[] getSupportedTypes()
          public String getType() { return ICardConstants.I_CARD_TYPE_CARDSPACE; }
 org.eclipse.higgins.icard.ICard importCard(CallbackHandler authHandler, String filename)
           
 List importFromBackup(InputStream is, String password)
           
 org.eclipse.higgins.icard.ICard importICard(CallbackHandler authHandler, Element card)
           
 void setID(String id)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdASBasedManagedCardProvider

public IdASBasedManagedCardProvider()
                             throws Exception
Method Detail

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,
                          org.eclipse.higgins.icard.IPolicy policy)
                   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
Specified by:
importCard 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

importFromBackup

public List importFromBackup(InputStream is,
                             String password)
                      throws Exception
Parameters:
is -
password -
Returns:
Throws:
Exception

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

exportCards

public void exportCards(CallbackHandler authHandler,
                        Iterator cards,
                        OutputStream out)
                 throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

getDescription

public String getDescription()
Specified by:
getDescription in interface org.eclipse.higgins.icard.ICardProvider

getICardByID

public org.eclipse.higgins.icard.ICard getICardByID(CallbackHandler authHandler,
                                                    String UUID)
                                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

getSupportedTypes

public Class[] getSupportedTypes()
public String getType() { return ICardConstants.I_CARD_TYPE_CARDSPACE; }

Specified by:
getSupportedTypes in interface org.eclipse.higgins.icard.ICardProvider

canImportICard

public boolean canImportICard(CallbackHandler authHandler,
                              Element card)
Specified by:
canImportICard in interface org.eclipse.higgins.icard.ICardProvider

exportICard

public void exportICard(CallbackHandler authHandler,
                        org.eclipse.higgins.icard.ICard card,
                        Element root)
                 throws org.eclipse.higgins.icard.CardException
Specified by:
exportICard in interface org.eclipse.higgins.icard.ICardProvider
Throws:
org.eclipse.higgins.icard.CardException

importICard

public org.eclipse.higgins.icard.ICard importICard(CallbackHandler authHandler,
                                                   Element card)
                                            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,
                                                      String CUID)
                                               throws org.eclipse.higgins.icard.CardException
Specified by:
getICardByCUID 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

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

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