public class AuthCallbackProxy extends Object implements DpAuthCallback
DpAuthCallback
interface and delegates calls to the
registered callback POJO with annotated methodsConstructor and Description |
---|
AuthCallbackProxy(Object backupObject)
Constructor for Callback proxys.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionCapability(AuthCBType authCBType)
Add action capability from annotated callType used to register
capabilities on the server
|
void |
addActionMethod(String name,
Method method)
Add callback action method to proxy
|
boolean |
auth(DpAuthContext atx)
The auth() callback is invoked with an instance to an authentication
context that provides information about the result of the authentication
so far.
|
static AuthCallbackProxy[] |
getAuthCallbackProxys(Object obj)
Get array of proxy objects from registered POJO callback.
|
Object |
getBackupObject()
Retrieve the callback POJO
|
public AuthCallbackProxy(Object backupObject)
backupObject
- registered callback POJOpublic Object getBackupObject()
public void addActionMethod(String name, Method method)
name
- canonical action namemethod
- registered callback methodpublic void addActionCapability(AuthCBType authCBType)
authCBType
- action typepublic boolean auth(DpAuthContext atx) throws DpCallbackException
DpAuthCallback
auth
in interface DpAuthCallback
atx
- authentication contextDpCallbackException
public static AuthCallbackProxy[] getAuthCallbackProxys(Object obj) throws DpCallbackException
obj
- registered Callback POJODpCallbackException