Package burp.api.montoya.utilities
Interface RandomUtils
-
public interface RandomUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRandomUtils.CharacterSet
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringrandomString(int length)Generate a random string using alphanumeric charactersjava.lang.StringrandomString(int minLength, int maxLength, RandomUtils.CharacterSet... characterSets)Generate a random string using the suppliedRandomUtils.CharacterSetjava.lang.StringrandomString(int minLength, int maxLength, java.lang.String chars)Generate a random string using the supplied charactersdefault java.lang.StringrandomString(int length, RandomUtils.CharacterSet... characterSets)Generate a random string using the suppliedRandomUtils.CharacterSetdefault java.lang.StringrandomString(int length, java.lang.String chars)Generate a random string using the supplied characters
-
-
-
Method Detail
-
randomString
default java.lang.String randomString(int length)
Generate a random string using alphanumeric characters- Parameters:
length- length of the resulting random string- Returns:
- randomly generated string
-
randomString
default java.lang.String randomString(int length, java.lang.String chars)Generate a random string using the supplied characters- Parameters:
length- length of the resulting random stringchars- the characters to use to generate the string- Returns:
- randomly generated string
-
randomString
default java.lang.String randomString(int length, RandomUtils.CharacterSet... characterSets)Generate a random string using the suppliedRandomUtils.CharacterSet- Parameters:
length- length of the resulting random stringcharacterSets- the listCharacterSetto use to generate the string- Returns:
- randomly generated string
-
randomString
java.lang.String randomString(int minLength, int maxLength, java.lang.String chars)Generate a random string using the supplied characters- Parameters:
minLength- the inclusive minimum length of the generated stringmaxLength- the inclusive maximum length of the generated stringchars- the characters to use to generate the string- Returns:
- randomly generated string
-
randomString
java.lang.String randomString(int minLength, int maxLength, RandomUtils.CharacterSet... characterSets)Generate a random string using the suppliedRandomUtils.CharacterSet- Parameters:
minLength- the inclusive minimum length of the generated stringmaxLength- the inclusive maximum length of the generated stringcharacterSets- the listCharacterSetto use to generate the string- Returns:
- randomly generated string
-
-