com.pmease.quickbuild.execution
Class SecretMasker

java.lang.Object
  extended by com.pmease.quickbuild.execution.SecretMasker
Direct Known Subclasses:
VariableWrapper.RecordedSecretsMasker

public abstract class SecretMasker
extends java.lang.Object

This class can be used to mask out sensitive information in the command. For example you may replace matched password with "*****"


Constructor Summary
SecretMasker()
           
 
Method Summary
abstract  java.lang.String mask(java.lang.String command)
          Replace sensitive information in the constructed command and return the result.
protected  java.lang.String quoteIfNecessary(java.lang.String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecretMasker

public SecretMasker()
Method Detail

quoteIfNecessary

protected java.lang.String quoteIfNecessary(java.lang.String token)

mask

public abstract java.lang.String mask(java.lang.String command)
Replace sensitive information in the constructed command and return the result.

Parameters:
command - the constructed command sent to OS for executing.
Returns:


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.