|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.embedded.EmbeddedAuthenticationService
public class EmbeddedAuthenticationService
An Embedded version of the IAuthenticationService which has a direct connection to the Anzo server.
| Constructor Summary | |
|---|---|
EmbeddedAuthenticationService(EmbeddedServiceBase baseService)
Get an instance of the EmbeddedAuthenticationService |
|
| Method Summary | |
|---|---|
org.openrdf.model.URI |
authenticateUser(java.lang.String userName,
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. |
static IAuthenticationService |
getInstance(java.lang.Object parent,
java.util.Properties props)
Get an instance of the EmbeddedAuthenticationService |
java.util.Set<org.openrdf.model.URI> |
getRolesForGraph(org.openrdf.model.URI graphId)
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.lang.String |
getServicePassword()
Get the Password for the current thread |
java.lang.String |
getServiceUser()
Get the UserId for the current thread |
java.util.Set<org.openrdf.model.URI> |
getUsersForGraph(org.openrdf.model.URI graphId)
Get the users that can read a given NamedGraph |
org.openrdf.model.URI |
getUserUri(java.lang.String userName)
Get the User's URI based on userId |
void |
setServicePassword(java.lang.String password)
Set the password for the current thread's operations |
void |
setServiceUser(java.lang.String userId)
Set the UserID for the current thread's operations |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedAuthenticationService(EmbeddedServiceBase baseService)
baseService - the base embedded service which this service is built upon| Method Detail |
|---|
public static IAuthenticationService getInstance(java.lang.Object parent,
java.util.Properties props)
parent - The object creating this serviceprops - The configuration properties for this service
public org.openrdf.model.URI authenticateUser(java.lang.String userName,
java.lang.String password)
throws AnzoException
IAuthenticationService
authenticateUser in interface IAuthenticationServiceuserName - 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 userName)
throws AnzoException
IAuthenticationService
getUserUri in interface IAuthenticationServiceuserName - 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> getRolesForGraph(org.openrdf.model.URI graphId)
throws AnzoException
IAuthenticationService
getRolesForGraph in interface IAuthenticationServicegraphId - URI of NamedGraph
AnzoException - if getting roles for graph fails
public java.util.Set<org.openrdf.model.URI> getUsersForGraph(org.openrdf.model.URI graphId)
throws AnzoException
IAuthenticationService
getUsersForGraph in interface IAuthenticationServicegraphId - URI of NamedGraph
AnzoException - if getting users for graph failspublic java.lang.String getServicePassword()
IService
getServicePassword in interface IServicepublic java.lang.String getServiceUser()
IService
getServiceUser in interface IServicepublic void setServicePassword(java.lang.String password)
IService
setServicePassword in interface IServicepassword - Password to use in current thread's operationspublic void setServiceUser(java.lang.String userId)
IService
setServiceUser in interface IServiceuserId - UserId to use in current thread's operations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||