@ElementType(value=TRANSLATOR) public class PasswordGeneratorPipe extends FixedForwardPipe
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
PasswordGeneratorPipe() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
protected String |
garbleString(String input)
Change the order of the characters in a
String |
protected String |
generate(int numOfLCharacters,
int numOfUCharacters,
int numOfSigns,
int numOfNumbers) |
String |
getLCharacters() |
String |
getNumbers() |
int |
getNumOfDigits() |
int |
getNumOfLCharacters() |
int |
getNumOfSigns() |
int |
getNumOfUCharacters() |
protected String |
getRandomElementsOfString(String input,
int count) |
String |
getSigns() |
String |
getUCharacters() |
boolean |
isUseSecureRandom() |
void |
setLCharacters(String lCharacters)
the lowercase characters to use
|
void |
setNumbers(String numbers)
the numbers to use
|
void |
setNumOfDigits(int i)
the number of digits in the generated password
|
void |
setNumOfLCharacters(int i)
the number of lowercase characters in the generated password
|
void |
setNumOfSigns(int i)
the number of sign characters in the generated password
|
void |
setNumOfUCharacters(int i)
the number of uppercase characters in the generated password
|
void |
setSigns(String signs)
the signs to use
|
void |
setUCharacters(String uCharacters)
the uppercase characters to use
|
void |
setUseSecureRandom(boolean b)
whether the securerandom algorithm is to be used (slower)
|
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, getParameterOverriddenAttributeValue, getParameterValueList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
AbstractPipe
doPipe
in interface IPipe
doPipe
in class AbstractPipe
PipeRunException
protected String generate(int numOfLCharacters, int numOfUCharacters, int numOfSigns, int numOfNumbers)
protected String garbleString(String input)
String
public boolean isUseSecureRandom()
public void setUseSecureRandom(boolean b)
public String getLCharacters()
public void setLCharacters(String lCharacters)
public String getUCharacters()
public void setUCharacters(String uCharacters)
public String getNumbers()
public void setNumbers(String numbers)
public String getSigns()
public void setSigns(String signs)
public int getNumOfLCharacters()
public int getNumOfDigits()
public int getNumOfSigns()
public int getNumOfUCharacters()
public void setNumOfLCharacters(int i)
public void setNumOfDigits(int i)
public void setNumOfSigns(int i)
public void setNumOfUCharacters(int i)
Copyright © 2023 Frank!Framework. All rights reserved.