Package org.keycloak.protocol.oidc.utils
Class OAuth2Code
- java.lang.Object
-
- org.keycloak.protocol.oidc.utils.OAuth2Code
-
public class OAuth2Code extends Object
Data associated with the oauth2 code. Those data are typically valid just for the very short time - they're created at the point before we redirect to the application after successful and they're removed when application sends requests to the token endpoint (code-to-token endpoint) to exchange the single-use OAuth2 code parameter for those data.- Author:
- Marek Posolda
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OAuth2Code
deserializeCode(Map<String,String> data)
String
getCodeChallenge()
String
getCodeChallengeMethod()
int
getExpiration()
String
getId()
String
getNonce()
String
getRedirectUriParam()
String
getScope()
String
getUserSessionId()
Map<String,String>
serializeCode()
-
-
-
Method Detail
-
deserializeCode
public static final OAuth2Code deserializeCode(Map<String,String> data)
-
getId
public String getId()
-
getExpiration
public int getExpiration()
-
getNonce
public String getNonce()
-
getScope
public String getScope()
-
getRedirectUriParam
public String getRedirectUriParam()
-
getCodeChallenge
public String getCodeChallenge()
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
-
getUserSessionId
public String getUserSessionId()
-
-