Package io.jans.as.model.authorize
Class CodeVerifier
- java.lang.Object
-
- io.jans.as.model.authorize.CodeVerifier
-
public class CodeVerifier extends Object
- Version:
- 0.9, 21/03/2016
- Author:
- Yuriy Zabrovarnyy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeVerifier.CodeChallengeMethod
-
Constructor Summary
Constructors Constructor Description CodeVerifier()
CodeVerifier(CodeVerifier.CodeChallengeMethod transformationType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
base64UrlEncode(byte[] input)
static String
generateCodeChallenge(CodeVerifier.CodeChallengeMethod codeChallengeMethod, String codeVerifier)
static String
generateCodeVerifier()
String
getCodeChallenge()
String
getCodeVerifier()
CodeVerifier.CodeChallengeMethod
getTransformationType()
static boolean
isCodeVerifierValid(String codeVerifier)
static boolean
matched(String codeChallenge, CodeVerifier.CodeChallengeMethod codeChallengeMethod, String codeVerifier)
static boolean
matched(String codeChallenge, String codeChallengeMethod, String codeVerifier)
static String
s256(String codeVerifier)
String
toString()
-
-
-
Constructor Detail
-
CodeVerifier
public CodeVerifier()
-
CodeVerifier
public CodeVerifier(CodeVerifier.CodeChallengeMethod transformationType)
-
-
Method Detail
-
generateCodeChallenge
public static String generateCodeChallenge(CodeVerifier.CodeChallengeMethod codeChallengeMethod, String codeVerifier)
-
matched
public static boolean matched(String codeChallenge, String codeChallengeMethod, String codeVerifier)
-
matched
public static boolean matched(String codeChallenge, CodeVerifier.CodeChallengeMethod codeChallengeMethod, String codeVerifier)
-
base64UrlEncode
public static String base64UrlEncode(byte[] input)
-
generateCodeVerifier
public static String generateCodeVerifier()
-
isCodeVerifierValid
public static boolean isCodeVerifierValid(String codeVerifier)
-
getCodeChallenge
public String getCodeChallenge()
-
getCodeVerifier
public String getCodeVerifier()
-
getTransformationType
public CodeVerifier.CodeChallengeMethod getTransformationType()
-
-