|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAuthenticationService
The IAuthenticationService provides an endpoint that services can use in order to authenticate a user against Anzo's authentication service.
| 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 userURI)
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 interface org.openanzo.services.IService |
|---|
getServicePassword, getServiceUser, setServicePassword, setServiceUser |
| Method Detail |
|---|
org.openrdf.model.URI authenticateUser(java.lang.String userId,
java.lang.String password)
throws AnzoException
userId - The id the user is authenticating againstpassword - The password for the id the user is authenticating against
AnzoException - is raised if authentication fails.
org.openrdf.model.URI getUserUri(java.lang.String userId)
throws AnzoException
userId - The id the user is authenticating against
AnzoException - if getting URI of id fails
java.util.Set<org.openrdf.model.URI> getRolesForUser(org.openrdf.model.URI userURI)
throws AnzoException
userURI - The URI of the user to get roles
AnzoException - if getting roles for user fails
java.util.Set<org.openrdf.model.URI> getUsersForGraph(org.openrdf.model.URI namedGraphUri)
throws AnzoException
namedGraphUri - URI of NamedGraph
AnzoException - if getting users for graph fails
java.util.Set<org.openrdf.model.URI> getRolesForGraph(org.openrdf.model.URI namedGraphUri)
throws AnzoException
namedGraphUri - 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 | |||||||||