| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION | ||||||
| Action summary | |
|---|---|
void | addUser(string username, string password, sequence<string> groups)
Add a user to the authentication database. Replaces an existing user's password and groups. The password is stored salted and hashed using MD5 crypt() password hashing. |
string | checkHeader(string authHeader)
Check an HTTP basic Authorization header against the database. |
string | checkRequest(com.softwareag.connectivity.httpclient.Request req)
Check an HTTP basic Authorization header in an HTTP Request against the database. |
boolean | checkUser(string username, string password)
Check a users password. |
com.apamax.authentication.Authentication | static createFromPath(string path)
Create an Authentication database in the given path on disk. |
com.apamax.authentication.Authentication | static createFromStore(com.apama.memorystore.Store s)
Create an Authentication database within an already created and prepared store in the application. |
com.apamax.authentication.Authentication | static createInMemory()
Create an Authentication database purely in memory. The contents will not persist between runs of the correlator. |
sequence<string> | getGroups(string username)
Return the groups for a given user. |
boolean | hasGroup(string username, string #group)
Checks if a user is a member of a given group. |
boolean | hasUser(string username)
Returns true if the database has a user of a given name. |
void | initFromStore(com.apama.memorystore.Store store, integer id)
|
integer | initialize()
Initialize the Authentication database. The database cannot be used until this has completed and routed an AuthenticationInitialized event. It should be called like: on AuthenticationInitialized(auth.initialize()) { // you can use auth here } |
void | removeUser(string username)
Remove a user from the authentication database. Does nothing silently if the user does not exist. |
void | setGroups(string username, sequence<string> groups)
Set the groups of a user. |
void | setPassword(string username, string password)
Set the password of a user. |
| Action detail |
|---|
void addUser(string username, string password, sequence<string> groups)Add a user to the authentication database. Replaces an existing user's password and groups. The password is stored salted and hashed using MD5 crypt() password hashing.
string checkHeader(string authHeader)Check an HTTP basic Authorization header against the database.
string checkRequest(com.softwareag.connectivity.httpclient.Request req)Check an HTTP basic Authorization header in an HTTP Request against the database.
boolean checkUser(string username, string password)Check a users password.
com.apamax.authentication.Authentication static createFromPath(string path)Create an Authentication database in the given path on disk.
com.apamax.authentication.Authentication static createFromStore(com.apama.memorystore.Store s)Create an Authentication database within an already created and prepared store in the application.
com.apamax.authentication.Authentication static createInMemory()Create an Authentication database purely in memory. The contents will not persist between runs of the correlator.
sequence<string> getGroups(string username)Return the groups for a given user.
boolean hasGroup(string username, string #group)Checks if a user is a member of a given group.
boolean hasUser(string username)Returns true if the database has a user of a given name.
void initFromStore(com.apama.memorystore.Store store, integer id)
integer initialize()Initialize the Authentication database. The database cannot be used until this has completed and routed an AuthenticationInitialized event. It should be called like:
on AuthenticationInitialized(auth.initialize()) { // you can use auth here } void removeUser(string username)Remove a user from the authentication database. Does nothing silently if the user does not exist.
void setGroups(string username, sequence<string> groups)Set the groups of a user.
void setPassword(string username, string password)Set the password of a user.
| FRAMES NO FRAMES | |||||||
| |||||||
| SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION | ||||||