|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.rpps.core.impl.RppsService
The object used for executing Higgins API and returning the results it produces.
| Nested Class Summary | |
|---|---|
static class |
RppsService.DummyTrustManagerFactory
|
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.higgins.rpps.core.IRppsService |
|---|
IPasswordCredential, IPinCodeCredential, ITSKerberosV5Credential, ITSSelfIssuedCredential, ITSSelfIssuedNonPinCredential, ITSUsernamePasswordCredential, ITSX509V3Credential, IUsernamePasswordCredential |
| Constructor Summary | |
|---|---|
RppsService()
Sets an HTML scraping script for the specified site |
|
RppsService(String userId,
String password)
|
|
| Method Summary | |
|---|---|
void |
addCardHistory(org.eclipse.higgins.icard.CUID cuid,
URI site)
|
CategoryTO |
addCategory(CategoryTO categoryTO)
|
void |
addClaimValuesMRU(String claimType,
String claimValue)
|
ResponseMessage |
addUserProfile(UserProfileTO userProfile)
Creates new user profile |
void |
addUserProfileFromHBX(String userId,
String password)
Creates new user profile |
static void |
AllowSelfSignedSSL()
|
void |
authenticate(String userId,
String password)
|
FormatDescriptorTO |
checkImportStream(byte[] crd)
|
ICardTO |
clearCardCredential(String cuid)
|
boolean |
clearCardHistory(String cuid)
|
static void |
ConfigureCache(String configurationBase,
String configurationFile)
|
ICardTO |
createDuplicateICard(String cardName,
String cuid,
String pinCode)
Creates the duplicate card with new card's name |
ICardTO |
createICard(ICardTemplateTO template)
Creates a new card by template |
ICardTO |
createICard(String id,
String[] properties)
Creates a new card |
String |
createICardFromHBX(String cardname)
Creates new card |
void |
deleteAllICard()
Deletes all user's card. |
boolean |
deleteCardHistoryRecord(String cuid,
String url)
|
void |
deleteCategory(String categoryId)
|
ICardUpdateResponseTO |
deleteICard(String cuid)
Deletes specified card. |
void |
deleteOldPassword()
|
boolean |
deleteUrlCardRelation(String cuid,
String url)
|
ResponseMessage |
deleteUserProfile()
Deletes user profile |
ICardTO |
editPinCode(String cuid,
String oldPinCode,
String newPinCode)
|
byte[] |
exportICards(String formatID,
String[] cards,
UITokenServiceCredentialTO credential)
|
CardUsageTO[] |
getCardHistory(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
|
CardUsageTO[] |
getCardHistoryLog(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
|
CardInformationTO |
getCardInformation(String cuid,
int size)
|
CategoryTO[] |
getCategory()
|
MapTO[] |
getClaimValuesMRU()
|
CallbackHandler |
getHandler()
|
String |
getHigginsServiceGlobalIName()
Gets the global i-name registered to the Higgins service (e.g. |
ICardTO |
getICardByCUID(String cuid)
Gets a card by CUID. |
ICardTO |
getICardByCUIDAndTokenServiceCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
Gets a card by CUID and Credential. |
UIResponseCardTO |
getICardClaims(String cuid,
String policy,
String typeofCredential,
String[] credentialKey,
String[] credentialValue)
|
ICardTemplateTO[] |
getICardCreationTemplate()
Return templates for creating cards |
org.eclipse.higgins.icard.ICardTemplate[] |
getICardCreationTemplateByProvider(String extID)
|
ICardTemplateTO |
getICardCreationTemplateByTUID(String tuid)
Return templates for creating cards |
org.eclipse.higgins.icard.ICardTemplate |
getICardCreationTemplateByTUID(org.eclipse.higgins.icard.TUID tuid)
Return templates for creating cards |
ICardsAndCategoryTO |
getICardsAndCategoriesByUser()
Gets the card and category lists of the specified user. |
ICardTO[] |
getICardsByCUIDs(String[] cuids)
Gets cards by CUIDs array. |
ICardTO[] |
getICardsByFormat(String formatID)
|
ICardResponseTO |
getICardsByUser()
Gets the card list of the specified user. |
static IRppsService |
getInstance()
Creates an RppsService object. |
static IRppsService |
getInstance(String userId,
String password)
Creates an RppsService object. |
FormatDescriptorTO[] |
getOutputFormats()
|
TokenResponseTO |
getTokenByClaims(String sslCert,
String[] claimName,
String[] claimValue)
Web service operation. |
TokenResponseTO |
getTokenByUrl(String policy,
String policytype,
String sslCert,
String url)
Web service operation. |
ExtraTokenResponseTO |
getTokenExtraByUrl(String policy,
String policytype,
String sslCert,
String url)
Web service operation. |
TokenResponseTO |
getTokenObject(String policy,
String policytype,
String sslCert,
String[] cuids,
String typeofCredential,
String[] credentialKey,
String[] credentialValue)
Web service operation. |
UIResponseTO |
getUserInterface(String url,
String target,
String sslCert,
String policytype,
String policy)
This method takes as input a policy---for example, one that has been retrieved from the Relying Party Agent (called here the 'Requester')---as well as a description of the Requester. |
UserProfileTO |
getUserProfile()
|
ICardResponseTO |
importICards(byte[] crd)
Imports card from a file. |
ICardResponseTO |
importICards(byte[] crd,
String formatID,
UITokenServiceCredentialTO credential)
Imports card from a file. |
ResponseMessage |
modifyCategories(CategoryTO[] categoriesTO)
|
CategoryTO |
modifyCategory(CategoryTO categoryTO)
|
UserProfileTO |
modifyUserProfile(UserProfileTO userProfile)
Update user profile |
void |
removeClaimValuesMRU(String claimType,
String claimValue)
|
ICardTO |
resetPinCode(String cuid,
String oldPinCode)
|
static String |
resolveUserIdentifier(String privateSelectorINumber)
|
boolean |
setCardCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
|
void |
setHandler(CallbackHandler handler)
Gets list of random word |
void |
setNewPrivateUserPassword(String newPassword)
|
ICardTO |
setPinCode(String cuid,
String pinCode)
Get a icard template for creating personal card |
ICardUpdateResponseTO[] |
updateClaimsAcrossCards(String[] claimTypes,
String[] claimValues,
ICardUpdateTO[] cardUpdate)
Update claim across cards. |
ICardTO |
updateICard(ICardTO icardTO)
Update card. |
ICardUpdateResponseTO[] |
updateICards(ICardTO[] icardTOList)
Update card. |
boolean |
userIdentifierExists(String userIdentifier)
Checks availability of user profile by userIdentifier |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RppsService()
public RppsService(String userId,
String password)
throws AccessException
| Method Detail |
public static void AllowSelfSignedSSL()
public static void ConfigureCache(String configurationBase,
String configurationFile)
public static IRppsService getInstance()
public static IRppsService getInstance(String userId,
String password)
throws AccessException
AccessExceptionpublic static String resolveUserIdentifier(String privateSelectorINumber)
privateSelectorINumber -
public void addCardHistory(org.eclipse.higgins.icard.CUID cuid,
URI site)
throws org.eclipse.higgins.icard.userprofile.UserProfileException
org.eclipse.higgins.icard.userprofile.UserProfileException
public CategoryTO addCategory(CategoryTO categoryTO)
throws RppsException
addCategory in interface IRppsServiceRppsException
public void addClaimValuesMRU(String claimType,
String claimValue)
throws RppsException
addClaimValuesMRU in interface IRppsServiceRppsException
public ResponseMessage addUserProfile(UserProfileTO userProfile)
throws RppsException
addUserProfile in interface IRppsServiceuserProfile - user profile trasfer object
RppsException
public void addUserProfileFromHBX(String userId,
String password)
throws RppsException
addUserProfileFromHBX in interface IRppsServiceuserId - the id to identify the user.password - the password to identify the user.
RppsException
public void authenticate(String userId,
String password)
throws AccessException
AccessException
public FormatDescriptorTO checkImportStream(byte[] crd)
throws RppsException
checkImportStream in interface IRppsServiceRppsException
public ICardTO clearCardCredential(String cuid)
throws RppsException
clearCardCredential in interface IRppsServiceRppsException
public boolean clearCardHistory(String cuid)
throws RppsException
clearCardHistory in interface IRppsServiceRppsException
public ICardTO createDuplicateICard(String cardName,
String cuid,
String pinCode)
throws RppsException
createDuplicateICard in interface IRppsServicecardName - new card's namecuid - cuid of old cardpinCode - pincode if it needs
RppsException
public ICardTO createICard(ICardTemplateTO template)
throws RppsException
createICard in interface IRppsServiceRppsException
public ICardTO createICard(String id,
String[] properties)
throws RppsException
createICard in interface IRppsServiceid - the i-card idproperties - the i-card properties
RppsException
public String createICardFromHBX(String cardname)
throws RppsException
createICardFromHBX in interface IRppsServicecardname - name of card
RppsException
public void deleteAllICard()
throws RppsException
deleteAllICard in interface IRppsServiceRppsException
public boolean deleteCardHistoryRecord(String cuid,
String url)
throws RppsException
deleteCardHistoryRecord in interface IRppsServiceRppsException
public void deleteCategory(String categoryId)
throws RppsException
deleteCategory in interface IRppsServiceRppsException
public ICardUpdateResponseTO deleteICard(String cuid)
throws RppsException
deleteICard in interface IRppsServicecuid - the i-card CUID
RppsException
public void deleteOldPassword()
throws org.eclipse.higgins.icard.userprofile.UserProfileException
deleteOldPassword in interface IRppsServiceorg.eclipse.higgins.icard.userprofile.UserProfileException
public boolean deleteUrlCardRelation(String cuid,
String url)
throws RppsException
deleteUrlCardRelation in interface IRppsServiceRppsException
public ResponseMessage deleteUserProfile()
throws RppsException
deleteUserProfile in interface IRppsServiceRppsException
public ICardTO editPinCode(String cuid,
String oldPinCode,
String newPinCode)
throws RppsException
editPinCode in interface IRppsServiceRppsException
public byte[] exportICards(String formatID,
String[] cards,
UITokenServiceCredentialTO credential)
throws RppsException
exportICards in interface IRppsServiceRppsException
public CardUsageTO[] getCardHistory(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
getCardHistory in interface IRppsService
public CardUsageTO[] getCardHistoryLog(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
public CardInformationTO getCardInformation(String cuid,
int size)
throws RppsException
getCardInformation in interface IRppsServicecuid -
RppsException
public CategoryTO[] getCategory()
throws RppsException
getCategory in interface IRppsServiceRppsException
public MapTO[] getClaimValuesMRU()
throws RppsException
getClaimValuesMRU in interface IRppsServiceRppsExceptionpublic CallbackHandler getHandler()
public String getHigginsServiceGlobalIName()
getHigginsServiceGlobalIName in interface IRppsService
public ICardTO getICardByCUID(String cuid)
throws RppsException
getICardByCUID in interface IRppsServicecuid - the card CUID.
RppsException
public ICardTO getICardByCUIDAndTokenServiceCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
throws RppsException
getICardByCUIDAndTokenServiceCredential in interface IRppsServicecuid - the card CUID.tokenCredential - the tokenCredential transfer object
RppsException
public UIResponseCardTO getICardClaims(String cuid,
String policy,
String typeofCredential,
String[] credentialKey,
String[] credentialValue)
throws RppsException
getICardClaims in interface IRppsServiceRppsExceptionpublic ICardTemplateTO[] getICardCreationTemplate()
getICardCreationTemplate in interface IRppsService
public org.eclipse.higgins.icard.ICardTemplate[] getICardCreationTemplateByProvider(String extID)
throws RppsException
getICardCreationTemplateByProvider in interface IRppsServiceRppsException
public ICardTemplateTO getICardCreationTemplateByTUID(String tuid)
throws RppsException
RppsException
public org.eclipse.higgins.icard.ICardTemplate getICardCreationTemplateByTUID(org.eclipse.higgins.icard.TUID tuid)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public ICardsAndCategoryTO getICardsAndCategoriesByUser()
throws RppsException
getICardsAndCategoriesByUser in interface IRppsServiceRppsExceptionpublic ICardTO[] getICardsByCUIDs(String[] cuids)
getICardsByCUIDs in interface IRppsServicecuids - the card CUIDs.
public ICardTO[] getICardsByFormat(String formatID)
throws RppsException
getICardsByFormat in interface IRppsServiceRppsExceptionpublic ICardResponseTO getICardsByUser()
getICardsByUser in interface IRppsService
public FormatDescriptorTO[] getOutputFormats()
throws RppsException
getOutputFormats in interface IRppsServiceRppsException
public TokenResponseTO getTokenByClaims(String sslCert,
String[] claimName,
String[] claimValue)
throws RppsException
getTokenByClaims in interface IRppsServicesslCert - the SSL certificate
RppsException
public TokenResponseTO getTokenByUrl(String policy,
String policytype,
String sslCert,
String url)
throws RppsException
getTokenByUrl in interface IRppsServicepolicy - the RP Agent's Relying Party Security Policypolicytype - the RP Security Policy typesslCert - the SSL certificateurl - the url of site which needs token
RemoteException
RppsException
public ExtraTokenResponseTO getTokenExtraByUrl(String policy,
String policytype,
String sslCert,
String url)
throws RppsException
getTokenExtraByUrl in interface IRppsServicepolicy - the RP Agent's Relying Party Security Policypolicytype - the RP Security Policy typesslCert - the SSL certificateurl - the url of site which needs token
RemoteException
RppsException
public TokenResponseTO getTokenObject(String policy,
String policytype,
String sslCert,
String[] cuids,
String typeofCredential,
String[] credentialKey,
String[] credentialValue)
throws RppsException
getTokenObject in interface IRppsServicepolicy - the RP Agent's Relying Party Security Policypolicytype - the RP Security Policy typesslCert - the SSL certificatecuids - the user-selected subset of the UIDs (handles) contained in the UserInterfaceResponse object returned from an earlier invocation of 'userInterfaceRequest'typeofCredential - the type of selected credentialcredentialKey - the names of fields of selected credentialcredentialValue - the value of fields of selected credential
RemoteException
RppsException
public UIResponseTO getUserInterface(String url,
String target,
String sslCert,
String policytype,
String policy)
throws RppsException
getUserInterface in interface IRppsServiceurl - the URL to the html page with
public UserProfileTO getUserProfile()
throws RppsException,
AccessException
getUserProfile in interface IRppsServiceRppsException
AccessException
public ICardResponseTO importICards(byte[] crd)
throws RppsException
importICards in interface IRppsServicecrd - the card as a byte array.
RppsException
public ICardResponseTO importICards(byte[] crd,
String formatID,
UITokenServiceCredentialTO credential)
throws RppsException
importICards in interface IRppsServicecrd - the card as a byte array.formatID - the data format of the input stream if available. If null is used all available data formats will be checked in order to import.credential - the authentication data to proccess the input stream if required
RppsException
public ResponseMessage modifyCategories(CategoryTO[] categoriesTO)
throws RppsException
modifyCategories in interface IRppsServiceRppsException
public CategoryTO modifyCategory(CategoryTO categoryTO)
throws RppsException
modifyCategory in interface IRppsServiceRppsException
public UserProfileTO modifyUserProfile(UserProfileTO userProfile)
throws RppsException
modifyUserProfile in interface IRppsServiceuserProfile - user profile transfer object
RppsException
public void removeClaimValuesMRU(String claimType,
String claimValue)
throws RppsException
removeClaimValuesMRU in interface IRppsServiceRppsException
public ICardTO resetPinCode(String cuid,
String oldPinCode)
throws RppsException
resetPinCode in interface IRppsServiceRppsException
public boolean setCardCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
throws RppsException
setCardCredential in interface IRppsServiceRppsExceptionpublic void setHandler(CallbackHandler handler)
public void setNewPrivateUserPassword(String newPassword)
throws org.eclipse.higgins.icard.userprofile.UserProfileException
setNewPrivateUserPassword in interface IRppsServicenewPassword -
org.eclipse.higgins.icard.userprofile.UserProfileException
public ICardTO setPinCode(String cuid,
String pinCode)
throws RppsException
setPinCode in interface IRppsServiceRppsException
public ICardUpdateResponseTO[] updateClaimsAcrossCards(String[] claimTypes,
String[] claimValues,
ICardUpdateTO[] cardUpdate)
throws RppsException
updateClaimsAcrossCards in interface IRppsServiceRppsException
public ICardTO updateICard(ICardTO icardTO)
throws RppsException
updateICard in interface IRppsServiceicardTO - the card transfer object.
RppsException
public ICardUpdateResponseTO[] updateICards(ICardTO[] icardTOList)
throws RppsException
updateICards in interface IRppsServiceRppsExceptionpublic boolean userIdentifierExists(String userIdentifier)
userIdentifierExists in interface IRppsServiceuserIdentifier -
RppsException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||