org.rhq.enterprise.agent
Class SecurityTokenCommandPreprocessor

java.lang.Object
  extended by org.rhq.enterprise.agent.SecurityTokenCommandPreprocessor
All Implemented Interfaces:
CommandPreprocessor

public class SecurityTokenCommandPreprocessor
extends Object
implements CommandPreprocessor

This command preprocessor is intended to be installed on the agent's ClientCommandSender so that all commands will get a security token inserted into their configuration.

Author:
John Mazzitelli

Constructor Summary
SecurityTokenCommandPreprocessor()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityTokenCommandPreprocessor

public SecurityTokenCommandPreprocessor()
Method Detail

preprocess

public 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.

Specified by:
preprocess in interface CommandPreprocessor
See Also:
CommandPreprocessor.preprocess(Command, ClientCommandSender)

setAgentConfiguration

public 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.

Parameters:
config - the agent's configuration where the token is found/stored


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.