Package io.jans.as.model.authorize
Class CodeVerifier
- java.lang.Object
-
- io.jans.as.model.authorize.CodeVerifier
-
public class CodeVerifier extends java.lang.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 java.lang.String
base64UrlEncode(byte[] input)
static java.lang.String
generateCodeChallenge(CodeVerifier.CodeChallengeMethod codeChallengeMethod, java.lang.String codeVerifier)
static java.lang.String
generateCodeVerifier()
java.lang.String
getCodeChallenge()
java.lang.String
getCodeVerifier()
CodeVerifier.CodeChallengeMethod
getTransformationType()
static boolean
isCodeVerifierValid(java.lang.String codeVerifier)
static boolean
matched(java.lang.String codeChallenge, CodeVerifier.CodeChallengeMethod codeChallengeMethod, java.lang.String codeVerifier)
static boolean
matched(java.lang.String codeChallenge, java.lang.String codeChallengeMethod, java.lang.String codeVerifier)
static java.lang.String
s256(java.lang.String codeVerifier)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CodeVerifier
public CodeVerifier()
-
CodeVerifier
public CodeVerifier(CodeVerifier.CodeChallengeMethod transformationType)
-
-
Method Detail
-
generateCodeChallenge
public static java.lang.String generateCodeChallenge(CodeVerifier.CodeChallengeMethod codeChallengeMethod, java.lang.String codeVerifier)
-
matched
public static boolean matched(java.lang.String codeChallenge, java.lang.String codeChallengeMethod, java.lang.String codeVerifier)
-
matched
public static boolean matched(java.lang.String codeChallenge, CodeVerifier.CodeChallengeMethod codeChallengeMethod, java.lang.String codeVerifier)
-
s256
public static java.lang.String s256(java.lang.String codeVerifier)
-
base64UrlEncode
public static java.lang.String base64UrlEncode(byte[] input)
-
generateCodeVerifier
public static java.lang.String generateCodeVerifier()
-
isCodeVerifierValid
public static boolean isCodeVerifierValid(java.lang.String codeVerifier)
-
getCodeChallenge
public java.lang.String getCodeChallenge()
-
getCodeVerifier
public java.lang.String getCodeVerifier()
-
getTransformationType
public CodeVerifier.CodeChallengeMethod getTransformationType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-