Class StripSecretsUtils

java.lang.Object
org.keycloak.models.utils.StripSecretsUtils

public class StripSecretsUtils extends Object
Author:
Stian Thorgersen
  • Constructor Details

    • StripSecretsUtils

      public StripSecretsUtils()
  • Method Details

    • stripSecrets

      public static <T> T stripSecrets(KeycloakSession session, T representation)
    • stripSecrets

      protected static <T> T stripSecrets(KeycloakSession session, T representation, Map<Class<?>,BiConsumer<KeycloakSession,Object>> formatters)
    • maskNonVaultValue

      protected static String maskNonVaultValue(String value)
    • stripCredentials

      protected static org.keycloak.representations.idm.CredentialRepresentation stripCredentials(org.keycloak.representations.idm.CredentialRepresentation rep)
    • stripComponent

      protected static org.keycloak.representations.idm.ComponentRepresentation stripComponent(Map<String,ProviderConfigProperty> configProperties, org.keycloak.representations.idm.ComponentRepresentation rep)
    • stripBroker

      protected static org.keycloak.representations.idm.IdentityProviderRepresentation stripBroker(org.keycloak.representations.idm.IdentityProviderRepresentation rep)
    • stripRealm

      protected static void stripRealm(KeycloakSession session, org.keycloak.representations.idm.RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties)
    • stripUser

      protected static org.keycloak.representations.idm.UserRepresentation stripUser(org.keycloak.representations.idm.UserRepresentation user)
    • stripClient

      protected static org.keycloak.representations.idm.ClientRepresentation stripClient(org.keycloak.representations.idm.ClientRepresentation rep)