public class RandomValueVerifierServices extends Object implements OAuthVerifierServices, InitializingBean
Constructor and Description |
---|
RandomValueVerifierServices() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
createVerifier()
Create a verifier.
|
Random |
getRandom()
The random value generator used to create token secrets.
|
int |
getVerifierLengthBytes()
The verifier length in bytes, before being encoded to a string.
|
protected String |
getVerifierString(byte[] verifierBytes)
Convert these random bytes to a verifier string.
|
void |
setRandom(Random random)
The random value generator used to create token secrets.
|
void |
setVerifierLengthBytes(int verifierLengthBytes)
The verifier length in bytes, before being encoded to a string.
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public String createVerifier()
OAuthVerifierServices
createVerifier
in interface OAuthVerifierServices
protected String getVerifierString(byte[] verifierBytes)
configured
. Default implementation
mods the bytes to fit into the ASCII letters 1-9, A-Z, a-z .verifierBytes
- The bytes.public Random getRandom()
public void setRandom(Random random)
random
- The random value generator used to create token secrets.public int getVerifierLengthBytes()
public void setVerifierLengthBytes(int verifierLengthBytes)
verifierLengthBytes
- The verifier length in bytes, before being encoded to a string.Copyright © 2019. All rights reserved.