|
||||||||||||
| 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,
Element 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)
|
void |
exportICard(CallbackHandler authHandler,
ICard card,
Element root)
Performs export of i-card data represented by card
parameter into newly created DOM element and adds it to element
represented by parent parameter. |
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. |
ICard |
getICardByCUID(CallbackHandler authHandler,
String CUID)
Gets user's ICard whose identity could be requested using
spesified callback handler which have the spesified unique identifier. |
Iterator |
getICards(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 |
importCard(CallbackHandler authHandler,
String fileName)
|
ICard |
importICard(CallbackHandler authHandler,
Element 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,
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 ICard getICardByCUID(CallbackHandler authHandler,
String 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 string representation of 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)
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,
Element 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,
Element 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 void exportICard(CallbackHandler authHandler,
ICard card,
Element root)
throws CardException
card
parameter into newly created DOM element and adds it to element
represented by parent parameter.
authHandler - -
the callback handler to be used to request user's identity.card - -
the i-card object to be exportedroot - -
the element to holds newly created element with exported data
of i-card
CardException
public ICard createCard(CallbackHandler authHandler,
String id,
Properties props)
throws CardException
props -
CardException
public ICard importCard(CallbackHandler authHandler,
String fileName)
throws CardException
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 | |||||||||||