Class ClientRegistrationTokenUtils
- java.lang.Object
-
- org.keycloak.services.clientregistration.ClientRegistrationTokenUtils
-
public class ClientRegistrationTokenUtils extends Object
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ClientRegistrationTokenUtils.TokenVerification
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_INITIAL_ACCESS_TOKEN
static String
TYPE_REGISTRATION_ACCESS_TOKEN
-
Constructor Summary
Constructors Constructor Description ClientRegistrationTokenUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createInitialAccessToken(KeycloakSession session, RealmModel realm, ClientInitialAccessModel model)
static String
updateRegistrationAccessToken(KeycloakSession session, ClientModel client, RegistrationAuth registrationAuth)
static String
updateRegistrationAccessToken(KeycloakSession session, RealmModel realm, ClientModel client, RegistrationAuth registrationAuth)
static String
updateTokenSignature(KeycloakSession session, ClientRegistrationAuth auth)
static ClientRegistrationTokenUtils.TokenVerification
verifyToken(KeycloakSession session, RealmModel realm, String token)
-
-
-
Field Detail
-
TYPE_INITIAL_ACCESS_TOKEN
public static final String TYPE_INITIAL_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
TYPE_REGISTRATION_ACCESS_TOKEN
public static final String TYPE_REGISTRATION_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
updateTokenSignature
public static String updateTokenSignature(KeycloakSession session, ClientRegistrationAuth auth)
-
updateRegistrationAccessToken
public static String updateRegistrationAccessToken(KeycloakSession session, ClientModel client, RegistrationAuth registrationAuth)
-
updateRegistrationAccessToken
public static String updateRegistrationAccessToken(KeycloakSession session, RealmModel realm, ClientModel client, RegistrationAuth registrationAuth)
-
createInitialAccessToken
public static String createInitialAccessToken(KeycloakSession session, RealmModel realm, ClientInitialAccessModel model)
-
verifyToken
public static ClientRegistrationTokenUtils.TokenVerification verifyToken(KeycloakSession session, RealmModel realm, String token)
-
-