Package com.tailf.dp.annotations
Class AuthCallbackProxy
Object
com.tailf.dp.annotations.AuthCallbackProxy
- All Implemented Interfaces:
DpAuthCallback
Callback proxy for Authorization Callbacks.
Implements the
DpAuthCallback interface and delegates calls to the
registered callback POJO with annotated methods-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionCapability(AuthCBType authCBType) Add action capability from annotated callType used to register capabilities on the servervoidaddActionMethod(String name, Method method) Add callback action method to proxybooleanauth(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[]Get array of proxy objects from registered POJO callback.Retrieve the callback POJO
-
Constructor Details
-
AuthCallbackProxy
Constructor for Callback proxys. Used internally.- Parameters:
backupObject- registered callback POJO
-
-
Method Details
-
getBackupObject
Retrieve the callback POJO- Returns:
- Object registered callback object
-
addActionMethod
Add callback action method to proxy- Parameters:
name- canonical action namemethod- registered callback method
-
addActionCapability
Add action capability from annotated callType used to register capabilities on the server- Parameters:
authCBType- action type
-
auth
Description copied from interface:DpAuthCallbackThe auth() callback is invoked with an instance to an authentication context that provides information about the result of the authentication so far. The callback must return true or false depending on the user being accepted or rejected.- Specified by:
authin interfaceDpAuthCallback- Parameters:
atx- authentication context- Returns:
- boolean
- Throws:
DpCallbackException
-
getAuthCallbackProxys
Get array of proxy objects from registered POJO callback. Used internally at callback registration- Parameters:
obj- registered Callback POJO- Returns:
- array of DBCallbackProxy
- Throws:
DpCallbackException
-