org.eclipse.higgins.icard.provider.cardspace.managed.db
Class JDBCBasedManagedCard

java.lang.Object
  extended byorg.eclipse.higgins.icard.common.Card
      extended byorg.eclipse.higgins.icard.provider.cardspace.common.InformationCard
          extended byorg.eclipse.higgins.icard.provider.cardspace.common.ManagedCard
              extended byorg.eclipse.higgins.icard.provider.cardspace.managed.db.JDBCBasedManagedCard
All Implemented Interfaces:
EventListener, org.eclipse.higgins.icard.ICard, org.eclipse.higgins.icard.IClaimContainer, org.eclipse.higgins.icard.IClaimTypeContainer, org.eclipse.higgins.icard.IExtensionListener, org.eclipse.higgins.icard.IInformationCard, org.eclipse.higgins.icard.IManagedInformationCard

public class JDBCBasedManagedCard
extends org.eclipse.higgins.icard.provider.cardspace.common.ManagedCard
implements org.eclipse.higgins.icard.IExtensionListener

Implementation of managed CardSpace-interoperable ICard stored within IdAS context


Constructor Summary
JDBCBasedManagedCard()
           
JDBCBasedManagedCard(JDBCBasedManagedCardProvider provider, org.eclipse.higgins.icard.provider.cardspace.db.ICardContext context, String userID, Element card)
           
JDBCBasedManagedCard(JDBCBasedManagedCardProvider provider, org.eclipse.higgins.icard.provider.cardspace.db.IDaoMCard card)
           
 
Method Summary
 org.eclipse.higgins.icard.IInformationCardExtension addExtension(org.eclipse.higgins.icard.io.IElement extension)
           
 void applyUpdates()
           
 void beginUpdates()
           
 void cancelUpdates()
           
 org.eclipse.higgins.icard.IClaim createClaim(String type)
           
 void extensionElementChanged(org.eclipse.higgins.icard.ICardExtensionEvent event)
           
 void extensionEnabledChanged(org.eclipse.higgins.icard.ICardExtensionEvent event)
           
 void init()
           
 boolean isClaimsRetrieved()
           
 boolean isEditable()
           
 boolean isEditMode()
           
 void removeExtension(org.eclipse.higgins.icard.IInformationCardExtension extension)
           
 org.eclipse.higgins.icard.IClaim setClaim(org.eclipse.higgins.icard.IClaim copyFrom)
           
 void setImage(byte[] image, String imageMimeType)
           
 void setIssuerName(String name)
           
 void setName(String name)
           
 void setTimeExpires(Date date)
           
 
Methods inherited from class org.eclipse.higgins.icard.provider.cardspace.common.ManagedCard
getClaim, getClaimByLocalName, getClaims, getIc07IssuerInformation, getPrivacyNotice, getRequireAppliesTo, getRequiredCredentials, getTokenServices, getType, initFromXML, isStrongRecipientIdentityRequired, toElement
 
Methods inherited from class org.eclipse.higgins.icard.provider.cardspace.common.InformationCard
getExtensions, getHashSalt, getIssuerID, getMasterKey, hasExtensions
 
Methods inherited from class org.eclipse.higgins.icard.common.Card
getCUID, getDescription, getID, getImage, getImageType, getIssuer, getIssuerName, getName, getProvider, getSupportedClaimTypes, getSupportedClaimTypesUris, getSupportedTokenTypes, getTimeExpires, getTimeIssued, getTimeLastUpdated, getVersion, isFormatSupported, isSelfIssued, setClaims
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.icard.IInformationCard
getExtensions, getHashSalt, getIssuerID, getMasterKey, hasExtensions
 
Methods inherited from interface org.eclipse.higgins.icard.ICard
getCUID, getDescription, getID, getImage, getImageType, getIssuer, getIssuerName, getName, getProvider, getSupportedClaimTypesUris, getSupportedTokenTypes, getTimeExpires, getTimeIssued, getTimeLastUpdated, getVersion, isFormatSupported, isSelfIssued
 
Methods inherited from interface org.eclipse.higgins.icard.IClaimTypeContainer
getSupportedClaimTypes
 

Constructor Detail

JDBCBasedManagedCard

public JDBCBasedManagedCard()

JDBCBasedManagedCard

public JDBCBasedManagedCard(JDBCBasedManagedCardProvider provider,
                            org.eclipse.higgins.icard.provider.cardspace.db.IDaoMCard card)
                     throws org.eclipse.higgins.icard.CardException
Parameters:
provider -
card -
Throws:
Exception
org.eclipse.higgins.icard.CardException

JDBCBasedManagedCard

public JDBCBasedManagedCard(JDBCBasedManagedCardProvider provider,
                            org.eclipse.higgins.icard.provider.cardspace.db.ICardContext context,
                            String userID,
                            Element card)
                     throws org.eclipse.higgins.icard.CardException
Parameters:
provider -
card -
Throws:
Exception
org.eclipse.higgins.icard.CardException
Method Detail

init

public void init()
          throws org.eclipse.higgins.icard.CardException
Throws:
Exception
org.eclipse.higgins.icard.CardException

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

setImage

public void setImage(byte[] image,
                     String imageMimeType)
              throws org.eclipse.higgins.icard.CardException
Specified by:
setImage in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.CardException

setIssuerName

public void setIssuerName(String name)
                   throws org.eclipse.higgins.icard.CardException
Specified by:
setIssuerName in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.CardException

setTimeExpires

public void setTimeExpires(Date date)
                    throws org.eclipse.higgins.icard.CardException
Specified by:
setTimeExpires in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.CardException

applyUpdates

public void applyUpdates()
                  throws org.eclipse.higgins.icard.InvalidStateException,
                         org.eclipse.higgins.icard.CardException
Specified by:
applyUpdates in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.InvalidStateException
org.eclipse.higgins.icard.CardException

beginUpdates

public void beginUpdates()
                  throws org.eclipse.higgins.icard.InvalidStateException
Specified by:
beginUpdates in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.InvalidStateException

cancelUpdates

public void cancelUpdates()
                   throws org.eclipse.higgins.icard.InvalidStateException
Specified by:
cancelUpdates in interface org.eclipse.higgins.icard.ICard
Throws:
org.eclipse.higgins.icard.InvalidStateException

isEditMode

public boolean isEditMode()
Specified by:
isEditMode in interface org.eclipse.higgins.icard.ICard

isEditable

public boolean isEditable()
Specified by:
isEditable in interface org.eclipse.higgins.icard.ICard

createClaim

public org.eclipse.higgins.icard.IClaim createClaim(String type)
                                             throws org.eclipse.higgins.icard.InvalidTypeException,
                                                    org.eclipse.higgins.icard.ReadOnlyObjectException
Specified by:
createClaim in interface org.eclipse.higgins.icard.IClaimContainer
Throws:
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.ReadOnlyObjectException

setClaim

public org.eclipse.higgins.icard.IClaim setClaim(org.eclipse.higgins.icard.IClaim copyFrom)
                                          throws org.eclipse.higgins.icard.InvalidClaimException,
                                                 org.eclipse.higgins.icard.InvalidTypeException,
                                                 org.eclipse.higgins.icard.ReadOnlyObjectException
Specified by:
setClaim in interface org.eclipse.higgins.icard.IClaimContainer
Throws:
org.eclipse.higgins.icard.InvalidClaimException
org.eclipse.higgins.icard.InvalidTypeException
org.eclipse.higgins.icard.ReadOnlyObjectException

isClaimsRetrieved

public boolean isClaimsRetrieved()
Specified by:
isClaimsRetrieved in interface org.eclipse.higgins.icard.ICard

addExtension

public org.eclipse.higgins.icard.IInformationCardExtension addExtension(org.eclipse.higgins.icard.io.IElement extension)
                                                                 throws org.eclipse.higgins.icard.CardException
Specified by:
addExtension in interface org.eclipse.higgins.icard.IInformationCard
Throws:
org.eclipse.higgins.icard.CardException

removeExtension

public void removeExtension(org.eclipse.higgins.icard.IInformationCardExtension extension)
                     throws org.eclipse.higgins.icard.CardException
Specified by:
removeExtension in interface org.eclipse.higgins.icard.IInformationCard
Throws:
org.eclipse.higgins.icard.CardException

extensionElementChanged

public void extensionElementChanged(org.eclipse.higgins.icard.ICardExtensionEvent event)
                             throws org.eclipse.higgins.icard.CardException
Specified by:
extensionElementChanged in interface org.eclipse.higgins.icard.IExtensionListener
Throws:
org.eclipse.higgins.icard.CardException

extensionEnabledChanged

public void extensionEnabledChanged(org.eclipse.higgins.icard.ICardExtensionEvent event)
                             throws org.eclipse.higgins.icard.CardException
Specified by:
extensionEnabledChanged in interface org.eclipse.higgins.icard.IExtensionListener
Throws:
org.eclipse.higgins.icard.CardException