| 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. The password is stored salted and hashed using MD5 crypt() password hashing. |
com.apamax.authentication.AuthResult | checkHeader(string authHeader)
Check an HTTP Authorization header. Will validate either an HTTP Basic auth header or a CacheToken session cache token. |
com.apamax.authentication.AuthResult | checkRequest(com.softwareag.connectivity.httpclient.Request req)
Check the HTTP Authorization header in a Request. Will validate either an HTTP Basic auth header or a CacheToken session cache token. |
boolean | checkUser(string username, string password)
Check a users password. |
com.apamax.authentication.CachedAuthentication | static createFromPath(string path, integer timeoutSecs, integer maxSessionLengthSecs)
Create an CachedAuthentication database in the given path on disk. |
com.apamax.authentication.CachedAuthentication | static createFromStore(com.apama.memorystore.Store s, integer timeoutSecs, integer maxSessionLengthSecs)
Create a CachedAuthentication database within an already created and prepared store in the application. |
com.apamax.authentication.CachedAuthentication | static createInMemory(integer timeoutSecs, integer maxSessionLengthSecs)
Create an CachedAuthentication 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. |
integer | initialize()
Initialize the CachedAuthentication 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. The password is stored salted and hashed using MD5 crypt() password hashing.
com.apamax.authentication.AuthResult checkHeader(string authHeader)Check an HTTP Authorization header. Will validate either an HTTP Basic auth header or a CacheToken session cache token.
com.apamax.authentication.AuthResult checkRequest(com.softwareag.connectivity.httpclient.Request req)Check the HTTP Authorization header in a Request. Will validate either an HTTP Basic auth header or a CacheToken session cache token.
boolean checkUser(string username, string password)Check a users password.
com.apamax.authentication.CachedAuthentication static createFromPath(string path, integer timeoutSecs, integer maxSessionLengthSecs)Create an CachedAuthentication database in the given path on disk.
com.apamax.authentication.CachedAuthentication static createFromStore(com.apama.memorystore.Store s, integer timeoutSecs, integer maxSessionLengthSecs)Create a CachedAuthentication database within an already created and prepared store in the application.
com.apamax.authentication.CachedAuthentication static createInMemory(integer timeoutSecs, integer maxSessionLengthSecs)Create an CachedAuthentication 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.
integer initialize()Initialize the CachedAuthentication 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 | ||||||