public class PkceUtil extends Object
Constructor and Description |
---|
PkceUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
generateCodeChallenge(String codeChallengeMethod,
String codeVerifier)
适用于 OAuth 2.0 PKCE 增强协议
|
static String |
generateCodeVerifier() |
static String |
newStringUsAscii(byte[] bytes) |
public static String generateCodeVerifier()
public static String generateCodeChallenge(String codeChallengeMethod, String codeVerifier)
codeChallengeMethod
- s256 / plaincodeVerifier
- 客户端生产的校验码public static String newStringUsAscii(byte[] bytes)
Copyright © 2021. All rights reserved.