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) Delegates authentication callback to the registered POJO method.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- the registered callback POJO
 
 - 
 - 
Method Details
- 
getBackupObject
Retrieve the callback POJO.- Returns:
 - the registered callback object
 
 - 
addActionMethod
Add callback action method to proxy- Parameters:
 name- the canonical method namemethod- the callback method to register
 - 
addActionCapability
Add action capability from annotated callType used to register capabilities on the server- Parameters:
 authCBType- the authentication callback type to add
 - 
auth
Delegates authentication callback to the registered POJO method.- Specified by:
 authin interfaceDpAuthCallback- Parameters:
 atx- the authentication context- Returns:
 - true if authentication should succeed, false otherwise
 - Throws:
 DpCallbackException- if the callback fails or is not implemented
 - 
getAuthCallbackProxys
Get array of proxy objects from registered POJO callback. Used internally at callback registration- Parameters:
 obj- the registered callback POJO- Returns:
 - array of authentication callback proxies
 - Throws:
 DpCallbackException- if method signatures don't match or annotation is invalid
 
 -