|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.common.util.RandomValueStringGenerator
public class RandomValueStringGenerator
Utility that generates a random-value ASCII string.
| 构造方法摘要 | |
|---|---|
RandomValueStringGenerator()
Create a generator with the default length (6). |
|
RandomValueStringGenerator(int length)
Create a generator of random strings of the length provided |
|
| 方法摘要 | |
|---|---|
String |
generate()
|
protected String |
getAuthorizationCodeString(byte[] verifierBytes)
Convert these random bytes to a verifier string. |
void |
setLength(int length)
The length of string to generate. |
void |
setRandom(Random random)
The random value generator used to create token secrets. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RandomValueStringGenerator()
public RandomValueStringGenerator(int length)
length - the length of the strings generated| 方法详细信息 |
|---|
public String generate()
protected String getAuthorizationCodeString(byte[] verifierBytes)
configured. The default implementation mods the bytes to fit into the
ASCII letters 1-9, A-Z, a-z .
verifierBytes - The bytes.
public void setRandom(Random random)
random - The random value generator used to create token secrets.public void setLength(int length)
length - the length to set
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||