Search in sources :

Example 16 with IdmConfigurationDto

use of eu.bcvsolutions.idm.core.api.dto.IdmConfigurationDto in project CzechIdMng by bcvsolutions.

the class DefaultRecaptchaRestTest method deleteRecaptchaProperties.

private void deleteRecaptchaProperties() {
    IdmConfigurationDto keyProp = configService.getByCode(RecaptchaConfiguration.PROPERTY_SECRET_KEY);
    if (keyProp != null) {
        configService.delete(keyProp);
    }
    IdmConfigurationDto urlProp = configService.getByCode(RecaptchaConfiguration.PROPERTY_URL);
    if (urlProp != null) {
        configService.delete(urlProp);
    }
}
Also used : IdmConfigurationDto(eu.bcvsolutions.idm.core.api.dto.IdmConfigurationDto)

Aggregations

IdmConfigurationDto (eu.bcvsolutions.idm.core.api.dto.IdmConfigurationDto)16 AbstractIntegrationTest (eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)9 Test (org.junit.Test)9 Transactional (org.springframework.transaction.annotation.Transactional)8 GuardedString (eu.bcvsolutions.idm.core.security.api.domain.GuardedString)5 IdmAuthorizationPolicyDto (eu.bcvsolutions.idm.core.api.dto.IdmAuthorizationPolicyDto)2 IdmIdentityDto (eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto)2 IdmRoleDto (eu.bcvsolutions.idm.core.api.dto.IdmRoleDto)2 IdmConfiguration (eu.bcvsolutions.idm.core.model.entity.IdmConfiguration)2 LoginDto (eu.bcvsolutions.idm.core.security.api.dto.LoginDto)2 UUID (java.util.UUID)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 ValueWrapper (org.springframework.cache.Cache.ValueWrapper)1