public class SecurityTokenCommandPreprocessor extends Object implements CommandPreprocessor
ClientCommandSender so that all commands
will get a security token inserted into their configuration.| Constructor and Description |
|---|
SecurityTokenCommandPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
preprocess(Command command,
ClientCommandSender sender)
If the agent has a security token established, this will insert that security token in the command's
configuration. |
void |
setAgentConfiguration(AgentConfiguration config)
This method is called during the startup of the agent so this preprocessor knows where to find and persist the
token.
|
public void preprocess(Command command, ClientCommandSender sender)
configuration.preprocess in interface CommandPreprocessorCommandPreprocessor.preprocess(Command, ClientCommandSender)public void setAgentConfiguration(AgentConfiguration config)
config - the agent's configuration where the token is found/storedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.