Package org.keycloak.models.utils
Class StripSecretsUtils
java.lang.Object
org.keycloak.models.utils.StripSecretsUtils
- Author:
- Stian Thorgersen
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
interface to encapsulate the getComponentProperties() function in order to make the code unit-testable -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static IdentityProviderRepresentation
protected static ClientRepresentation
protected static ComponentRepresentation
stripComponent
(Map<String, ProviderConfigProperty> configProperties, ComponentRepresentation rep) protected static CredentialRepresentation
protected static void
stripRealm
(KeycloakSession session, RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties) static <T> T
stripSecrets
(KeycloakSession session, T representation) protected static UserRepresentation
stripUser
(UserRepresentation user)
-
Constructor Details
-
StripSecretsUtils
public StripSecretsUtils()
-
-
Method Details
-
stripSecrets
-
stripCredentials
-
stripComponent
protected static ComponentRepresentation stripComponent(Map<String, ProviderConfigProperty> configProperties, ComponentRepresentation rep) -
stripBroker
-
stripRealm
protected static void stripRealm(KeycloakSession session, RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties) -
stripUser
-
stripClient
-