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 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, ProviderConfigProperty> configProperties, org.keycloak.representations.idm.ComponentRepresentation rep) protected static org.keycloak.representations.idm.CredentialRepresentationstripCredentials(org.keycloak.representations.idm.CredentialRepresentation rep) protected static voidstripRealm(KeycloakSession session, org.keycloak.representations.idm.RealmRepresentation rep, StripSecretsUtils.GetComponentPropertiesFn fnGetConfigProperties) static <T> TstripSecrets(KeycloakSession session, T representation) protected static org.keycloak.representations.idm.UserRepresentationstripUser(org.keycloak.representations.idm.UserRepresentation user)
-
Constructor Details
-
StripSecretsUtils
public StripSecretsUtils()
-
-
Method Details
-
stripSecrets
-
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)
-