Package org.keycloak.models.utils
Class StripSecretsUtils
java.lang.Object
org.keycloak.models.utils.StripSecretsUtils
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceinterface to encapsulate the getComponentProperties() function in order to make the code unit-testable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringmaskNonVaultValue(String value) protected static org.keycloak.representations.idm.IdentityProviderRepresentationstripBroker(org.keycloak.representations.idm.IdentityProviderRepresentation rep) protected static org.keycloak.representations.idm.ClientRepresentationstripClient(org.keycloak.representations.idm.ClientRepresentation rep) protected static org.keycloak.representations.idm.ComponentRepresentationstripComponent(Map<String, org.keycloak.provider.ProviderConfigProperty> configProperties, org.keycloak.representations.idm.ComponentRepresentation rep) protected static org.keycloak.representations.idm.CredentialRepresentationstripCredentials(org.keycloak.representations.idm.CredentialRepresentation rep) protected static voidstripRealm(org.keycloak.models.KeycloakSession session, org.keycloak.representations.idm.RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties) static <T> TstripSecrets(org.keycloak.models.KeycloakSession session, T representation) protected static <T> TstripSecrets(org.keycloak.models.KeycloakSession session, T representation, Map<Class<?>, BiConsumer<org.keycloak.models.KeycloakSession, Object>> formatters) protected static org.keycloak.representations.idm.UserRepresentationstripUser(org.keycloak.representations.idm.UserRepresentation user)
-
Constructor Details
-
StripSecretsUtils
public StripSecretsUtils()
-
-
Method Details
-
stripSecrets
public static <T> T stripSecrets(org.keycloak.models.KeycloakSession session, T representation) -
stripSecrets
protected static <T> T stripSecrets(org.keycloak.models.KeycloakSession session, T representation, Map<Class<?>, BiConsumer<org.keycloak.models.KeycloakSession, Object>> formatters) -
maskNonVaultValue
-
stripCredentials
protected static org.keycloak.representations.idm.CredentialRepresentation stripCredentials(org.keycloak.representations.idm.CredentialRepresentation rep) -
stripComponent
-
stripBroker
protected static org.keycloak.representations.idm.IdentityProviderRepresentation stripBroker(org.keycloak.representations.idm.IdentityProviderRepresentation rep) -
stripRealm
protected static void stripRealm(org.keycloak.models.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)
-