|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.security.oauth.pkce.AbstractPKCEGenerator
org.pfsw.security.oauth.pkce.PlainPKCEGenerator
public class PlainPKCEGenerator
An RFC-7636 PKCE proof key generator for the "plain" code challenge method.
Constructor Summary | |
---|---|
PlainPKCEGenerator()
Creates a new instance with a default random string generator for new code verifier strings. |
|
PlainPKCEGenerator(org.pfsw.text.StringGenerator randomStringGenerator)
Creates a new instance with the given random string generator. |
Method Summary | |
---|---|
static PlainPKCEGenerator |
create()
Creates a new instance with a default random string generator for new code verifier strings. |
static PlainPKCEGenerator |
create(org.pfsw.text.StringGenerator randomStringGenerator)
Creates a new instance with the given random string generator. |
protected java.lang.String |
createCodeChallenge(java.lang.String codeVerifier)
Returns the derived code challenge string for the given code verifier by applying the AbstractPKCEGenerator.getCodeChallengeMethod() . |
static PlainPKCEGenerator |
instance()
Returns always the same instance of this class. |
static ProofKeyForCodeExchange |
newProofKey()
Returns a newly generated proof key. |
Methods inherited from class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator |
---|
generate, generateRandomCodeVerifier, getCodeChallengeMethod, getRandomStringGenerator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlainPKCEGenerator()
public PlainPKCEGenerator(org.pfsw.text.StringGenerator randomStringGenerator)
randomStringGenerator
- A string generator that produces a different string for each invocation (must not be null).
It will be used to generate new code verifier strings.Method Detail |
---|
public static PlainPKCEGenerator instance()
public static PlainPKCEGenerator create()
public static PlainPKCEGenerator create(org.pfsw.text.StringGenerator randomStringGenerator)
randomStringGenerator
- A string generator that produces a different string for each invocation (must not be null).
It will be used to generate new code verifier strings.public static ProofKeyForCodeExchange newProofKey()
protected java.lang.String createCodeChallenge(java.lang.String codeVerifier)
AbstractPKCEGenerator
AbstractPKCEGenerator.getCodeChallengeMethod()
.
createCodeChallenge
in class AbstractPKCEGenerator
codeVerifier
- The newly created random code verifier.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |