Package COM.TIBCO.hawk.console.security
Interface HsAgentInterface
public interface HsAgentInterface
The HsAgent interface is used to build a security implementation class
for the TIB/Hawk agent. To build a security implementation, write a class
that implements the HsAgentInterface.
-
Method Summary
Modifier and TypeMethodDescriptiondescribe()All implementers must provide a description of themselves.voidCalled from the TIB/Hawk Agent to initialize the security plug-in.voidshutdown()Called from the TIB/Hawk Agent to shutdown the security plug-in.unpack(HsPackedOperation operation) Called from within the TIB/Hawk agent to unpack every request into plaintext form.booleanvalidateId(HsIdentifier id, HsOperation operation) Called by the TIB/Hawk agent to validate and authorize each request.
-
Method Details
-
initialize
Called from the TIB/Hawk Agent to initialize the security plug-in. Since the TIB/Hawk agent runs as a service or daemon, it is not possible to perform interactive activities from within the plug-in. This method will not called again until shutdown() is successful.- Throws:
HsException- is thrown by the plug-in to indicate an error error.
-
shutdown
Called from the TIB/Hawk Agent to shutdown the security plug-in. Since the TIB/Hawk agent runs as a service or daemon, it is not possible to perform interactive activities from within the plug-in. This method will not be called again until initialize() is successful.- Throws:
HsException- is thrown by the plug-in to indicate an error error.
-
unpack
Called from within the TIB/Hawk agent to unpack every request into plaintext form.- Parameters:
operation- The signed request- Throws:
HsException- is thrown by the plug-in to indicate an error error.
-
validateId
Called by the TIB/Hawk agent to validate and authorize each request.- Parameters:
id- The security object that was produced by unpack().operation- The plaintext request produced by unpack().- Throws:
HsException- is thrown by the plug-in to indicate an error error.
-
describe
String describe()All implementers must provide a description of themselves. This description is printed to stdout (or log files) any time the security policy is set or changed.
-