class PasswordGeneratorPipe extends FixedForwardPipe {

	@Override
	public PipeRunResult doPipe (Message message, IPipeLineSession session) throws PipeRunException {
		
		String result;
		 try {
				//generate password containing: 2 LC-letters, 2 UC-letters, 2 symbols and 2 numbers
				result =  generate(getNumOfLCharacters(),getNumOfUCharacters(),getNumOfSigns(),getNumOfDigits());
			} catch (Exception e) {
				throw new PipeRunException(this, "failed to generate password",e);
			}

		return new PipeRunResult(getForward(),result);
	}

}