Class StripSecretsUtils

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

public class StripSecretsUtils extends Object
Author:
Stian Thorgersen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
    interface to encapsulate the getComponentProperties() function in order to make the code unit-testable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static org.keycloak.representations.idm.IdentityProviderRepresentation
    stripBroker(org.keycloak.representations.idm.IdentityProviderRepresentation rep)
     
    protected static org.keycloak.representations.idm.ClientRepresentation
    stripClient(org.keycloak.representations.idm.ClientRepresentation rep)
     
    protected static org.keycloak.representations.idm.ComponentRepresentation
    stripComponent(Map<String,ProviderConfigProperty> configProperties, org.keycloak.representations.idm.ComponentRepresentation rep)
     
    protected static org.keycloak.representations.idm.CredentialRepresentation
    stripCredentials(org.keycloak.representations.idm.CredentialRepresentation rep)
     
    protected static void
    stripRealm(KeycloakSession session, org.keycloak.representations.idm.RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties)
     
    static <T> T
    stripSecrets(KeycloakSession session, T representation)
     
    protected static org.keycloak.representations.idm.UserRepresentation
    stripUser(org.keycloak.representations.idm.UserRepresentation user)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StripSecretsUtils

      public StripSecretsUtils()
  • Method Details

    • stripSecrets

      public static <T> T stripSecrets(KeycloakSession session, T representation)
    • 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)