@Named(value="S256") @Singleton @Requires(condition=Sha256Condition.class) public class S256PkceGenerator extends java.lang.Object implements PkceGenerator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODE_CHALLENGE_METHOD_S256 |
static java.lang.Integer |
ORDER |
Constructor and Description |
---|
S256PkceGenerator(CodeVerifierGenerator codeVerifierGenerator) |
Modifier and Type | Method and Description |
---|---|
Pkce |
generate() |
java.lang.String |
getName() |
int |
getOrder() |
static java.lang.String |
hash(java.lang.String value) |
boolean |
supportsAny(java.util.List<java.lang.String> codeChallengeMethods) |
public static final java.lang.Integer ORDER
public static final java.lang.String CODE_CHALLENGE_METHOD_S256
public S256PkceGenerator(CodeVerifierGenerator codeVerifierGenerator)
codeVerifierGenerator
- Code Verifier generator@NonNull public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
public int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered
public boolean supportsAny(@NonNull java.util.List<java.lang.String> codeChallengeMethods)
supportsAny
in interface PkceGenerator
codeChallengeMethods
- Code Challenge methods@NonNull public Pkce generate()
generate
in interface PkceGenerator
Pkce
.@NonNull public static java.lang.String hash(@NonNull java.lang.String value)
value
- Value to be hashed