Class DefaultPkceFactory
- java.lang.Object
-
- io.micronaut.security.oauth2.endpoint.authorization.pkce.DefaultPkceFactory
-
- All Implemented Interfaces:
PkceFactory
@Singleton public class DefaultPkceFactory extends java.lang.Object implements PkceFactory
Generates a Proof Key for Code Exchange and persists.- Since:
- 3.9.0
-
-
Constructor Summary
Constructors Constructor Description DefaultPkceFactory(java.util.List<PkceGenerator> generators, PkcePersistence persistence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<PkceChallenge>buildChallenge(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse<?> response, java.util.List<java.lang.String> supportedChallengeMethods)
-
-
-
Constructor Detail
-
DefaultPkceFactory
public DefaultPkceFactory(@NonNull java.util.List<PkceGenerator> generators, @NonNull PkcePersistence persistence)
-
-
Method Detail
-
buildChallenge
@NonNull public java.util.Optional<PkceChallenge> buildChallenge(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @Nullable java.util.List<java.lang.String> supportedChallengeMethods)
- Specified by:
buildChallengein interfacePkceFactory- Parameters:
request- The original request prior redirectresponse- The authorization redirect responsesupportedChallengeMethods- Challenge methods supported by the authorization server- Returns:
- A state parameter. An opaque value used to maintain state between the request and the callback.
-
-