|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.services.impl.WSBaseService
org.openanzo.services.impl.WSAuthenticationService
public class WSAuthenticationService
Implementation of IAuthenticationService that uses WebService/Soap to talk to a remote Anzo Server.
| Constructor Summary | |
|---|---|
WSAuthenticationService(java.util.Properties properties)
Create new WSAuthenticationService with configuration properties provided in properties object |
|
WSAuthenticationService(java.lang.String serviceHostName,
int servicePort,
java.lang.String serviceUser,
java.lang.String servicePassword,
int serviceTimeout)
Create new WSAuthenticationService with given configuration properties |
|
| Method Summary | |
|---|---|
org.openrdf.model.URI |
authenticateUser(java.lang.String userId,
java.lang.String password)
Authenticates the user with a given userId and password against the Anzo Server's authentication service, and returns the user's URI in Anzo. |
java.util.Set<org.openrdf.model.URI> |
getRolesForGraph(org.openrdf.model.URI namedGraphUri)
Get the roles that can read a given NamedGraph |
java.util.Set<org.openrdf.model.URI> |
getRolesForUser(org.openrdf.model.URI userId)
Get roles that given user is a member |
java.util.Set<org.openrdf.model.URI> |
getUsersForGraph(org.openrdf.model.URI namedGraphUri)
Get the users that can read a given NamedGraph |
org.openrdf.model.URI |
getUserUri(java.lang.String userId)
Get the User's URI based on userId |
| Methods inherited from class org.openanzo.services.impl.WSBaseService |
|---|
getServiceHostName, getServicePassword, getServicePort, getServiceUser, setServiceHostName, setServicePassword, setServicePort, setServiceUser |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.services.IService |
|---|
getServicePassword, getServiceUser, setServicePassword, setServiceUser |
| Constructor Detail |
|---|
public WSAuthenticationService(java.lang.String serviceHostName,
int servicePort,
java.lang.String serviceUser,
java.lang.String servicePassword,
int serviceTimeout)
serviceHostName - Hostname for Anzo serverservicePort - Port for Anzo serverserviceUser - Username for Anzo serverservicePassword - Password for Anzo serverserviceTimeout - Number of milliseconds to wait before timing out call to serverpublic WSAuthenticationService(java.util.Properties properties)
properties - Properties object containing configuration properties| Method Detail |
|---|
public org.openrdf.model.URI authenticateUser(java.lang.String userId,
java.lang.String password)
throws AnzoException
IAuthenticationService
authenticateUser in interface IAuthenticationServiceuserId - The id the user is authenticating againstpassword - The password for the id the user is authenticating against
AnzoException - is raised if authentication fails.
public org.openrdf.model.URI getUserUri(java.lang.String userId)
throws AnzoException
IAuthenticationService
getUserUri in interface IAuthenticationServiceuserId - The id the user is authenticating against
AnzoException - if getting URI of id fails
public java.util.Set<org.openrdf.model.URI> getRolesForUser(org.openrdf.model.URI userId)
throws AnzoException
IAuthenticationService
getRolesForUser in interface IAuthenticationServiceuserId - The URI of the user to get roles
AnzoException - if getting roles for user fails
public java.util.Set<org.openrdf.model.URI> getUsersForGraph(org.openrdf.model.URI namedGraphUri)
throws AnzoException
IAuthenticationService
getUsersForGraph in interface IAuthenticationServicenamedGraphUri - URI of NamedGraph
AnzoException - if getting users for graph fails
public java.util.Set<org.openrdf.model.URI> getRolesForGraph(org.openrdf.model.URI namedGraphUri)
throws AnzoException
IAuthenticationService
getRolesForGraph in interface IAuthenticationServicenamedGraphUri - URI of NamedGraph
AnzoException - if getting roles for graph fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||