|
BEAST
|
Manages the authorization requests (preferrably in a database) More...
Public Member Functions | |
| void | add (AuthorizationRequest request) |
| Adds a request (note, requestuuid must be != null). | |
| AuthorizationRequest | get (int id) |
| AuthorizationRequest | get (String uuid, boolean outgoing) |
| AuthorizationRequest | getByRemoteAddress (String remoteAddress) |
| Returns an authorization request based on remote address. | |
| AuthorizationRequest | getByNodeName (String nodeName) |
| Returns an authorization request based on node name. | |
| List< AuthorizationRequest > | findByRemoteHost (String address) |
| List< AuthorizationRequest > | findByOutgoing (boolean outgoing) |
| Allows searching based on outgoing or incomming requests. | |
| List< AuthorizationRequest > | list () |
| void | update (AuthorizationRequest request) |
| Updates the authorization request by identifying row from id. | |
| void | remove (int requestId) |
| void | remove (String uuid) |
| String | createUUID () |
| Authorization | toAuthorization (AuthorizationRequest request) |
| AuthorizationRequest | createRequest () |
| Creates an authorization request. | |
Manages the authorization requests (preferrably in a database)
| void eu.baltrad.beast.security.IAuthorizationRequestManager.add | ( | AuthorizationRequest | request | ) |
Adds a request (note, requestuuid must be != null).
Upon success, the id will be updated with the new serial
| request | the request to add to storage |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.createRequest | ( | ) |
Creates an authorization request.
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| String eu.baltrad.beast.security.IAuthorizationRequestManager.createUUID | ( | ) |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.findByOutgoing | ( | boolean | outgoing | ) |
Allows searching based on outgoing or incomming requests.
| outgoing | if outgoing or not |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.findByRemoteHost | ( | String | address | ) |
| address | the remote host address |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.get | ( | int | id | ) |
| id | the unique id |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.get | ( | String | uuid, |
| boolean | outgoing ) |
| uuid | the unique uuid |
| outgoing | if the fetched request should be incoming/outgoing request object |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.getByNodeName | ( | String | nodeName | ) |
Returns an authorization request based on node name.
Should not be allowed with more than one.
| nodeName | the node name |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.getByRemoteAddress | ( | String | remoteAddress | ) |
Returns an authorization request based on remote address.
Should not be allowed with more than one.
| remoteAddress | the remote address |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.list | ( | ) |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| void eu.baltrad.beast.security.IAuthorizationRequestManager.remove | ( | int | requestId | ) |
| requestId | the request id to the request to be removed |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| void eu.baltrad.beast.security.IAuthorizationRequestManager.remove | ( | String | uuid | ) |
| uuid | the request uuid to the request to be removed |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| Authorization eu.baltrad.beast.security.IAuthorizationRequestManager.toAuthorization | ( | AuthorizationRequest | request | ) |
| request | the request to be translated into an authorization |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.
| void eu.baltrad.beast.security.IAuthorizationRequestManager.update | ( | AuthorizationRequest | request | ) |
Updates the authorization request by identifying row from id.
| request | the request to update |
Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.