|
||||||||||||
| 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()
|
|
RppsService(String userId,
String password)
|
|
| Method Summary | |
|---|---|
String |
acquireICard(String subscribeURL)
Acquires the i-card from RP site. |
void |
addCardHistory(org.eclipse.higgins.icard.CUID cuid,
URI site)
|
CategoryTO |
addCategory(CategoryTO categoryTO)
|
ResponseMessage |
addUserProfile(UserProfileTO userProfile)
Creates new user profile |
void |
addUserProfileFromHBX(String userId,
String password)
Creates new user profile |
static void |
AllowSelfSignedSSL()
Other methods ************** |
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)
|
void |
connectionNotify(String host,
String username,
boolean success)
Locate the URIICard-type I-Card whose URI matches 'cref'. |
boolean |
connectionVerify(String host,
String username)
The RP site invokes this method to verify that user really has an account on the specified site. |
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. |
void |
deleteCategory(String categoryId)
|
void |
deleteICard(String cuid)
Deletes specified card. |
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()
|
String |
getFormFillingScript(URL page,
String username,
String form)
Gets a form filling script for the specified site&user |
CallbackHandler |
getHandler()
|
String |
getHigginsServiceGlobalIName()
Gets the global i-name registered to the Higgins service (e.g. |
String |
getHtmlScrapingScript(String page)
Gets an HTML scraping script for the specified site |
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)
|
ICardsAndCategoryTO |
getICardsAndCategoriesByUser()
Gets the card and category lists of the specified user. |
ICardTO[] |
getICardsByFormat(String formatID)
|
ICardTO[] |
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()
|
ICardTemplateTO |
getPersonalICardCreationTemplate()
Get a icard template for creating personal card |
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()
|
ICardTO[] |
importICards(byte[] crd)
Imports card from a file. |
ICardTO[] |
importICards(byte[] crd,
String formatID,
UITokenServiceCredentialTO credential)
|
ResponseMessage |
modifyCategories(CategoryTO[] categoriesTO)
|
CategoryTO |
modifyCategory(CategoryTO categoryTO)
|
UserProfileTO |
modifyUserProfile(UserProfileTO userProfile)
Update user profile |
ICardTO |
resetPinCode(String cuid,
String oldPinCode)
|
boolean |
setCardCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
|
void |
setHandler(CallbackHandler handler)
|
void |
setHtmlScrapingScript(String page,
String script)
Sets an HTML scraping script for the specified site |
ICardTO |
setPinCode(String cuid,
String pinCode)
|
ICardTO |
updateICard(ICardTO icardTO)
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 IRppsService getInstance()
public static IRppsService getInstance(String userId,
String password)
throws AccessException
AccessExceptionpublic CallbackHandler getHandler()
public void setHandler(CallbackHandler handler)
public void authenticate(String userId,
String password)
throws AccessException
AccessException
public String acquireICard(String subscribeURL)
throws MalformedURLException
acquireICard in interface IRppsServicesubscribeURL - the URL of the site from where i-card will be acquired
MalformedURLException
public void connectionNotify(String host,
String username,
boolean success)
throws MalformedURLException
connectionNotify in interface IRppsServicehost - the host name of the RP site where user is verifiedusername - the user name to login to the RP sitesuccess - the verifying result
MalformedURLException
public boolean connectionVerify(String host,
String username)
throws MalformedURLException
connectionVerify in interface IRppsServicehost - The verified site url.username - The username to login onto verified site.
MalformedURLException
public String getFormFillingScript(URL page,
String username,
String form)
getFormFillingScript in interface IRppsServicepage - the page url where user lands onusername - the user nameform - the HTML form name
public String getHtmlScrapingScript(String page)
throws MalformedURLException,
RppsException
getHtmlScrapingScript in interface IRppsServicepage - the page url
MalformedURLException
RppsException
public void setHtmlScrapingScript(String page,
String script)
throws MalformedURLException,
RppsException
setHtmlScrapingScript in interface IRppsServicepage - the page urlscript - the script body
MalformedURLException
RppsException
public ICardTO createICard(String id,
String[] properties)
throws RppsException
createICard in interface IRppsServiceid - the i-card idproperties - the i-card properties
RppsException
public ICardTO createICard(ICardTemplateTO template)
throws RppsException
createICard 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 String createICardFromHBX(String cardname)
throws RppsException
createICardFromHBX in interface IRppsServicecardname - name of card
RppsException
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 ICardTO[] getICardsByUser()
getICardsByUser in interface IRppsService
public ICardsAndCategoryTO getICardsAndCategoriesByUser()
throws RppsException
getICardsAndCategoriesByUser in interface IRppsServiceRppsException
public ICardTO updateICard(ICardTO icardTO)
throws RppsException
updateICard in interface IRppsServiceicardTO - the card transfer object.
RppsException
public ICardTO[] importICards(byte[] crd)
throws RppsException
importICards in interface IRppsServicecrd - the card as a byte array.
RppsException
public ICardTO[] importICards(byte[] crd,
String formatID,
UITokenServiceCredentialTO credential)
throws RppsException
importICards in interface IRppsServiceRppsException
public FormatDescriptorTO checkImportStream(byte[] crd)
throws RppsException
checkImportStream in interface IRppsServiceRppsException
public byte[] exportICards(String formatID,
String[] cards,
UITokenServiceCredentialTO credential)
throws RppsException
exportICards in interface IRppsServiceRppsException
public ICardTO[] getICardsByFormat(String formatID)
throws RppsException
getICardsByFormat in interface IRppsServiceRppsException
public FormatDescriptorTO[] getOutputFormats()
throws RppsException
getOutputFormats in interface IRppsServiceRppsException
public void deleteICard(String cuid)
throws RppsException
deleteICard in interface IRppsServicecuid - the i-card CUID
RppsException
public void deleteAllICard()
throws RppsException
deleteAllICard in interface IRppsServiceRppsException
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 TokenResponseTO getTokenByClaims(String sslCert,
String[] claimName,
String[] claimValue)
throws RppsException
getTokenByClaims in interface IRppsServicesslCert - the SSL certificate
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 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
RppsExceptionpublic ICardTemplateTO[] getICardCreationTemplate()
getICardCreationTemplate in interface IRppsService
public org.eclipse.higgins.icard.ICardTemplate[] getICardCreationTemplateByProvider(String extID)
throws RppsException
getICardCreationTemplateByProvider in interface IRppsServiceRppsExceptionpublic ICardTemplateTO getPersonalICardCreationTemplate()
getPersonalICardCreationTemplate in interface IRppsService
public ICardTO setPinCode(String cuid,
String pinCode)
throws RppsException
setPinCode in interface IRppsServiceRppsException
public ICardTO resetPinCode(String cuid,
String oldPinCode)
throws RppsException
resetPinCode in interface IRppsServiceRppsException
public ICardTO editPinCode(String cuid,
String oldPinCode,
String newPinCode)
throws RppsException
editPinCode in interface IRppsServiceRppsException
public void addCardHistory(org.eclipse.higgins.icard.CUID cuid,
URI site)
throws org.eclipse.higgins.icard.userprofile.UserProfileException
org.eclipse.higgins.icard.userprofile.UserProfileExceptionpublic boolean clearCardHistory(String cuid)
clearCardHistory in interface IRppsService
public CardUsageTO[] getCardHistoryLog(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
public CardUsageTO[] getCardHistory(String cuid,
int startFrom,
int size,
String orderBy,
String orderDirection)
getCardHistory in interface IRppsService
public CategoryTO[] getCategory()
throws RppsException
getCategory in interface IRppsServiceRppsException
public CategoryTO addCategory(CategoryTO categoryTO)
throws RppsException
addCategory in interface IRppsServiceRppsException
public void deleteCategory(String categoryId)
throws RppsException
deleteCategory in interface IRppsServiceRppsException
public CategoryTO modifyCategory(CategoryTO categoryTO)
throws RppsException
modifyCategory in interface IRppsServiceRppsException
public ResponseMessage modifyCategories(CategoryTO[] categoriesTO)
throws RppsException
modifyCategories in interface IRppsServiceRppsException
public UserProfileTO getUserProfile()
throws RppsException,
AccessException
getUserProfile in interface IRppsServiceRppsException
AccessException
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 ResponseMessage addUserProfile(UserProfileTO userProfile)
throws RppsException
addUserProfile in interface IRppsServiceuserProfile - user profile trasfer object
RppsException
public ResponseMessage deleteUserProfile()
throws RppsException
deleteUserProfile in interface IRppsServiceRppsExceptionpublic boolean userIdentifierExists(String userIdentifier)
userIdentifierExists in interface IRppsServiceuserIdentifier -
RppsException
public UserProfileTO modifyUserProfile(UserProfileTO userProfile)
throws RppsException
modifyUserProfile in interface IRppsServiceuserProfile - user profile transfer object
RppsException
public CardInformationTO getCardInformation(String cuid,
int size)
throws RppsException
getCardInformation in interface IRppsServicecuid -
RppsException
public ICardTO clearCardCredential(String cuid)
throws RppsException
clearCardCredential in interface IRppsServiceRppsException
public boolean setCardCredential(String cuid,
UITokenServiceCredentialTO tokenCredential)
throws RppsException
setCardCredential in interface IRppsServiceRppsException
public boolean deleteUrlCardRelation(String cuid,
String url)
throws RppsException
deleteUrlCardRelation in interface IRppsServiceRppsExceptionpublic static void AllowSelfSignedSSL()
public String getHigginsServiceGlobalIName()
getHigginsServiceGlobalIName in interface IRppsService
public static void ConfigureCache(String configurationBase,
String configurationFile)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||