Class Pkce
- java.lang.Object
-
- io.micronaut.security.oauth2.endpoint.authorization.pkce.Pkce
-
- All Implemented Interfaces:
PkceChallenge
@Introspected public class Pkce extends java.lang.Object implements PkceChallenge
Proof Key for Code Exchange.- See Also:
- RFC 7636
-
-
Constructor Summary
Constructors Constructor Description Pkce(java.lang.String codeChallengeMethod, java.lang.String codeChallenge, java.lang.String codeVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCodeChallenge()java.lang.StringgetCodeChallengeMethod()java.lang.StringgetCodeVerifier()
-
-
-
Method Detail
-
getCodeChallengeMethod
@NonNull public java.lang.String getCodeChallengeMethod()
- Specified by:
getCodeChallengeMethodin interfacePkceChallenge- Returns:
- A method that was used to derive code challenge.
- See Also:
- RFC 7636
-
getCodeChallenge
@NonNull public java.lang.String getCodeChallenge()
- Specified by:
getCodeChallengein interfacePkceChallenge- Returns:
- A challenge derived from the code verifier that is sent in the authorization request, to be verified against later.
-
getCodeVerifier
@NonNull public java.lang.String getCodeVerifier()
- Returns:
- A cryptographically random string that is used to correlate the authorization request to the token request.
-
-