|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| Field Summary | |
|---|---|
static String |
CONTEXT_REF_PROP_NAME
|
static String |
CONTEXT_SCHEMA_FILE_PROP_NAME
|
static String |
CONTEXT_SCHEMA_URL_PROP_NAME
|
static String |
IMAGE_URL_PROP_NAME
|
| Method Summary | |
|---|---|
boolean |
canCreateCard(CallbackHandler authHandler,
String id,
Properties props)
|
boolean |
canImportICard(CallbackHandler authHandler,
IElement card)
Tests whether this provider can import i-card represented by card parameter. |
ICard |
createCard(CallbackHandler authHandler,
ICardTemplate template)
|
ICard |
createCard(CallbackHandler authHandler,
String id,
Properties props)
|
void |
deleteCard(CallbackHandler authHandler,
ICard card)
|
IElement[] |
exportICards(CallbackHandler authHandler,
IElementFormat format,
CUID[] cards)
Performs export of cards into array of
IElements. |
ICardTemplate[] |
getCardCreationTemplates(CallbackHandler authHandler)
|
String |
getDescription()
Gets human readable description of this i-card provider. |
ICard |
getICardByCUID(CallbackHandler authHandler,
CUID cuid)
Gets user's ICard whose identity could be requested using
spesified callback handler which have the spesified unique identifier. |
ICard |
getICardByCUID(CallbackHandler authHandler,
CUID cuid,
ICredential userCredential)
Gets fully loaded user's ICard whose identity could be
requested using spesified callback handler which have the spesified
unique identifier. |
Iterator |
getICards(CallbackHandler authHandler)
Gets all available user's ICards whose identity could be
requested using provided callback handler. |
Iterator |
getICardsByFormat(CallbackHandler authHandler,
IElementFormat format)
Gets all user's ICards whose identity could be requested
using provided callback handler that could be exported to
IElement with the format described by
format parameter. |
Iterator |
getICardsByPolicy(CallbackHandler authHandler,
IPolicy policy)
Checks all available user's ICards whose identity could
be requested using provided callback handler against provided
policy and returns all satisfied. |
String |
getName()
Gets human readable name of this i-card provider. |
Class[] |
getSupportedTypes()
Gets an array of ICard interfaces supported by this i-card
provider (e.g. |
ICard |
importICard(CallbackHandler authHandler,
IElement card)
Imports i-card data into backed store used by this provider and returns i-card object representing imported i-card. |
| Methods inherited from interface org.eclipse.higgins.registry.IServiceProvider |
|---|
getConfiguration, getID, setID |
| Field Detail |
public static final String CONTEXT_REF_PROP_NAME
public static final String CONTEXT_SCHEMA_URL_PROP_NAME
public static final String CONTEXT_SCHEMA_FILE_PROP_NAME
public static final String IMAGE_URL_PROP_NAME
| Method Detail |
public String getName()
public String getDescription()
public Class[] getSupportedTypes()
ICard interfaces supported by this i-card
provider (e.g. ICard, IInformationCard, IManagedInformationCard,
IPersonalInformationCard, IURICard, etc.).
public Iterator getICards(CallbackHandler authHandler)
throws CardException
ICards whose identity could be
requested using provided callback handler.
authHandler - -
the callback handler to be used to request user's identity.
Iterator through all user's ICards.
CardException
public Iterator getICardsByPolicy(CallbackHandler authHandler,
IPolicy policy)
throws CardException
ICards whose identity could
be requested using provided callback handler against provided
policy and returns all satisfied.
Typically, when polocy parameter is not null,
i-card provider uses IPolicy.isSatisfiedBy(ICard) to find matched
ICards.
When policy parameter is null i-card
provider returns all available ICards.
authHandler - -
the callback handler to be used to request user's identity.policy - -
the policy to be used to select satisfied ICards
only.
Iterator through all satisfied
ICards.
CardException
public Iterator getICardsByFormat(CallbackHandler authHandler,
IElementFormat format)
throws CardException
ICards whose identity could be requested
using provided callback handler that could be exported to
IElement with the format described by
format parameter.
authHandler - -
the callback handler to be used to request user's identity.format - -
the descriptor of the element for which export capabilities
need to be checked.
Iterator through all satisfied
ICards.
CardException
public ICard getICardByCUID(CallbackHandler authHandler,
CUID cuid)
throws CardException
ICard whose identity could be requested using
spesified callback handler which have the spesified unique identifier.
Card object returned by this method call may or may not have its claims
retieved from endpoint service. When a card doesn't have its claims
retieved (ICard.isClaimsRetrieved() returns false)
it is necessary to make additional call to
getICardByCUID(CallbackHandler, CUID, ICredential) in order to
obtain fully loaded card object.
authHandler - -
the callback handler to be used to request user's identity.cuid - -
the unique identifier of i-card which is requested.
ICard instance.
CardException - if ICard with CUID couldn't be
retrieved.
public ICard getICardByCUID(CallbackHandler authHandler,
CUID cuid,
ICredential userCredential)
throws AuthenticationException,
CardException
ICard whose identity could be
requested using spesified callback handler which have the spesified
unique identifier.
authHandler - -
the callback handler to be used to request user's identity.cuid - -
the unique identifier of i-card which is requested.userCredential - -
the credential object used to authenticate the user on
endpoint service.
ICard instance.
AuthenticationException - when an attempt to authenticate the user on endpoint service
has failed
CardException - if ICard with CUID couldn't be
retrieved.
public boolean canCreateCard(CallbackHandler authHandler,
String id,
Properties props)
public boolean canImportICard(CallbackHandler authHandler,
IElement card)
card parameter.
authHandler - -
the callback handler to be used to request user's identity.card - -
the element which holds i-card data
card parameter holds valid i-card data and
this provider could import them as i-card.
public ICard importICard(CallbackHandler authHandler,
IElement card)
throws CardException
Card object returned by this method call may or may not have its claims
retieved from endpoint service. When a card doesn't have its claims
retieved (ICard.isClaimsRetrieved() returns false)
it is necessary to make additional call to
getICardByCUID(CallbackHandler, CUID, ICredential) in order to
obtain fully loaded card object.
authHandler - -
the callback handler to be used to request user's identity.card - -
the element which holds i-card data
CardException
public IElement[] exportICards(CallbackHandler authHandler,
IElementFormat format,
CUID[] cards)
throws CardException
cards into array of
IElements. Each element in returned array must conform
with the requirements specified by elementDescriptor
parameter.
authHandler - -
the callback handler to be used to request user's identity.format - -
the element descriptor which defines the format of element to
exportcards - -
the array of CUIDs of cards to be exported
CardException
public ICard createCard(CallbackHandler authHandler,
String id,
Properties props)
throws CardException
props -
CardException
public void deleteCard(CallbackHandler authHandler,
ICard card)
throws CardException
CardExceptionpublic ICardTemplate[] getCardCreationTemplates(CallbackHandler authHandler)
authHandler -
ICardTemplate which describe data required by this provider to create a card
public ICard createCard(CallbackHandler authHandler,
ICardTemplate template)
throws CardException
authHandler - template -
CardException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||