Class ClientPoliciesUtil
java.lang.Object
org.keycloak.services.clientpolicy.ClientPoliciesUtil
Utilities for treating client policies/profiles
- Author:
- Takashi Norimatsu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
convert client policies as representation to json.static String
convert client profiles as representation to json.static InputStream
static List<ClientPolicyRepresentation>
readGlobalClientPoliciesRepresentation
(KeycloakSession session, String name, List<ClientProfileRepresentation> profiles) static List<ClientProfileRepresentation>
readGlobalClientProfilesRepresentation
(KeycloakSession session, String name)
-
Constructor Details
-
ClientPoliciesUtil
public ClientPoliciesUtil()
-
-
Method Details
-
getJsonFileFromClasspathOrConfFolder
- Throws:
IOException
-
readGlobalClientProfilesRepresentation
public static List<ClientProfileRepresentation> readGlobalClientProfilesRepresentation(KeycloakSession session, String name) throws ClientPolicyException - Throws:
ClientPolicyException
-
readGlobalClientPoliciesRepresentation
public static List<ClientPolicyRepresentation> readGlobalClientPoliciesRepresentation(KeycloakSession session, String name, List<ClientProfileRepresentation> profiles) throws ClientPolicyException - Throws:
ClientPolicyException
-
convertClientProfilesRepresentationToJson
public static String convertClientProfilesRepresentationToJson(ClientProfilesRepresentation reps) throws ClientPolicyException convert client profiles as representation to json. can return null.- Throws:
ClientPolicyException
-
convertClientPoliciesRepresentationToJson
public static String convertClientPoliciesRepresentationToJson(ClientPoliciesRepresentation reps) throws ClientPolicyException convert client policies as representation to json. can return null.- Throws:
ClientPolicyException
-