Package com.google.auth.oauth2
Class DefaultPKCEProvider
- java.lang.Object
-
- com.google.auth.oauth2.DefaultPKCEProvider
-
- All Implemented Interfaces:
PKCEProvider
public class DefaultPKCEProvider extends Object implements PKCEProvider
Implements PKCE using only the Java standard library. See https://www.rfc-editor.org/rfc/rfc7636.https://developers.google.com/identity/protocols/oauth2/native-app#step1-code-verifier.
-
-
Constructor Summary
Constructors Constructor Description DefaultPKCEProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeChallenge()
Get the code_challenge parameter used in PKCE.String
getCodeChallengeMethod()
Get the code_challenge_method parameter used in PKCE.String
getCodeVerifier()
Get the code_verifier parameter used in PKCE.
-
-
-
Method Detail
-
getCodeVerifier
public String getCodeVerifier()
Description copied from interface:PKCEProvider
Get the code_verifier parameter used in PKCE.- Specified by:
getCodeVerifier
in interfacePKCEProvider
- Returns:
- The code_verifier String.
-
getCodeChallenge
public String getCodeChallenge()
Description copied from interface:PKCEProvider
Get the code_challenge parameter used in PKCE.- Specified by:
getCodeChallenge
in interfacePKCEProvider
- Returns:
- The code_challenge String.
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
Description copied from interface:PKCEProvider
Get the code_challenge_method parameter used in PKCE.Currently possible values are: S256,plain
- Specified by:
getCodeChallengeMethod
in interfacePKCEProvider
- Returns:
- The code_challenge_method String.
-
-