test_class.file: Realization/backend/acc/src/test/java/eu/bcvsolutions/idm/acc/service/impl/DefaultPasswordFilterManagerTest.java
test_class.identifier: DefaultPasswordFilterManagerTest
test_class.superclass: extends AbstractPasswordFilterIntegrationTest
test_case.body: @Test
  	@Ignore
  	public void stressTestPasswordEndcoding() {
  		long sum = 0;
  		int iteration = 100;
  		for (int index = 0; index < iteration+1; index++) {
  			long before = System.currentTimeMillis();
  			passwordFilterManager.createEcho(UUID.randomUUID(), new GuardedString(getHelper().createName()));
  			long after = System.currentTimeMillis();
  			
  			long diff = after - before;
  			sum += diff;
  		}
  		System.out.println(MessageFormat.format("[{0}] iteration takes [{1}]. Average for one iteration [{2}].", iteration, sum, sum/iteration));
  	}
test_case.class_method_signature: DefaultPasswordFilterManagerTest.stressTestPasswordEndcoding()
test_case.full_signature: @Test @Ignore public void stressTestPasswordEndcoding()
test_case.identifier: stressTestPasswordEndcoding
test_case.invocations: currentTimeMillis createEcho randomUUID createName getHelper currentTimeMillis println format
test_case.modifiers: @Test @Ignore public
test_case.parameters: ()
test_case.return: void
test_case.signature: void stressTestPasswordEndcoding()
focal_class.declarator: LOG = org.slf4j.LoggerFactory.getLogger(DefaultPasswordFilterManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(DefaultPasswordFilterManager.class);
focal_class.type: org.slf4j.Logger
focal_class.var_name: LOG
focal_class.declarator: uniformPasswordService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private AccUniformPasswordService uniformPasswordService;
focal_class.type: AccUniformPasswordService
focal_class.var_name: uniformPasswordService
focal_class.declarator: lookupService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private LookupService lookupService;
focal_class.type: LookupService
focal_class.var_name: lookupService
focal_class.declarator: policyService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmPasswordPolicyService policyService;
focal_class.type: IdmPasswordPolicyService
focal_class.var_name: policyService
focal_class.declarator: identityService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmIdentityService identityService;
focal_class.type: IdmIdentityService
focal_class.var_name: identityService
focal_class.declarator: accountService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private AccAccountService accountService;
focal_class.type: AccAccountService
focal_class.var_name: accountService
focal_class.declarator: scriptEvaluator
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DefaultTransformFromResourceEvaluator scriptEvaluator;
focal_class.type: DefaultTransformFromResourceEvaluator
focal_class.var_name: scriptEvaluator
focal_class.declarator: groovyScriptService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GroovyScriptService groovyScriptService;
focal_class.type: GroovyScriptService
focal_class.var_name: groovyScriptService
focal_class.declarator: idmCacheManager
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmCacheManager idmCacheManager;
focal_class.type: IdmCacheManager
focal_class.var_name: idmCacheManager
focal_class.declarator: uniformPasswordConfiguration
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private PasswordFilterEncoderConfiguration uniformPasswordConfiguration;
focal_class.type: PasswordFilterEncoderConfiguration
focal_class.var_name: uniformPasswordConfiguration
focal_class.declarator: systemAttributeMappingService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private SysSystemAttributeMappingService systemAttributeMappingService;
focal_class.type: SysSystemAttributeMappingService
focal_class.var_name: systemAttributeMappingService
focal_class.declarator: encoder
focal_class.modifier: private
focal_class.original_string: private PasswordEncoder encoder;
focal_class.type: PasswordEncoder
focal_class.var_name: encoder
focal_class.file: Realization/backend/acc/src/main/java/eu/bcvsolutions/idm/acc/service/impl/DefaultPasswordFilterManager.java
focal_class.identifier: DefaultPasswordFilterManager
focal_class.interfaces: implements PasswordFilterManager
focal_class.class_method_signature: DefaultPasswordFilterManager.validate(AccPasswordFilterRequestDto request)
focal_class.full_signature: @Override public void validate(AccPasswordFilterRequestDto request)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (AccPasswordFilterRequestDto request)
focal_class.return: void
focal_class.signature: void validate(AccPasswordFilterRequestDto request)
focal_class.class_method_signature: DefaultPasswordFilterManager.change(AccPasswordFilterRequestDto request)
focal_class.full_signature: @Override public void change(AccPasswordFilterRequestDto request)
focal_class.identifier: change
focal_class.modifiers: @Override public
focal_class.parameters: (AccPasswordFilterRequestDto request)
focal_class.return: void
focal_class.signature: void change(AccPasswordFilterRequestDto request)
focal_class.class_method_signature: DefaultPasswordFilterManager.setEchoForChange(UUID accountId, GuardedString password)
focal_class.full_signature: @Override public void setEchoForChange(UUID accountId, GuardedString password)
focal_class.identifier: setEchoForChange
focal_class.modifiers: @Override public
focal_class.parameters: (UUID accountId, GuardedString password)
focal_class.return: void
focal_class.signature: void setEchoForChange(UUID accountId, GuardedString password)
focal_class.class_method_signature: DefaultPasswordFilterManager.clearChangedEcho(UUID accountId)
focal_class.full_signature: @Override public void clearChangedEcho(UUID accountId)
focal_class.identifier: clearChangedEcho
focal_class.modifiers: @Override public
focal_class.parameters: (UUID accountId)
focal_class.return: void
focal_class.signature: void clearChangedEcho(UUID accountId)
focal_class.class_method_signature: DefaultPasswordFilterManager.createEchoForValidation(UUID accountId, GuardedString password, boolean success)
focal_class.full_signature: @Override public void createEchoForValidation(UUID accountId, GuardedString password, boolean success)
focal_class.identifier: createEchoForValidation
focal_class.modifiers: @Override public
focal_class.parameters: (UUID accountId, GuardedString password, boolean success)
focal_class.return: void
focal_class.signature: void createEchoForValidation(UUID accountId, GuardedString password, boolean success)
focal_class.class_method_signature: DefaultPasswordFilterManager.createEcho(UUID accountId, GuardedString password)
focal_class.full_signature: @Override public void createEcho(UUID accountId, GuardedString password)
focal_class.identifier: createEcho
focal_class.modifiers: @Override public
focal_class.parameters: (UUID accountId, GuardedString password)
focal_class.return: void
focal_class.signature: void createEcho(UUID accountId, GuardedString password)
focal_class.class_method_signature: DefaultPasswordFilterManager.getEcho(UUID accountId)
focal_class.full_signature: @Override public AccPasswordFilterEchoItemDto getEcho(UUID accountId)
focal_class.identifier: getEcho
focal_class.modifiers: @Override public
focal_class.parameters: (UUID accountId)
focal_class.return: AccPasswordFilterEchoItemDto
focal_class.signature: AccPasswordFilterEchoItemDto getEcho(UUID accountId)
focal_class.class_method_signature: DefaultPasswordFilterManager.evaluateUsernameToIdentity(SysSystemDto system, AccPasswordFilterRequestDto request, SysSystemAttributeMappingDto passwordFilterAttribute)
focal_class.full_signature: protected IdmIdentityDto evaluateUsernameToIdentity(SysSystemDto system, AccPasswordFilterRequestDto request, SysSystemAttributeMappingDto passwordFilterAttribute)
focal_class.identifier: evaluateUsernameToIdentity
focal_class.modifiers: protected
focal_class.parameters: (SysSystemDto system, AccPasswordFilterRequestDto request, SysSystemAttributeMappingDto passwordFilterAttribute)
focal_class.return: IdmIdentityDto
focal_class.signature: IdmIdentityDto evaluateUsernameToIdentity(SysSystemDto system, AccPasswordFilterRequestDto request, SysSystemAttributeMappingDto passwordFilterAttribute)
focal_class.class_method_signature: DefaultPasswordFilterManager.getPasswordPolicy(List<SysSystemDto> systems)
focal_class.full_signature: private List<IdmPasswordPolicyDto> getPasswordPolicy(List<SysSystemDto> systems)
focal_class.identifier: getPasswordPolicy
focal_class.modifiers: private
focal_class.parameters: (List<SysSystemDto> systems)
focal_class.return: List<IdmPasswordPolicyDto>
focal_class.signature: List<IdmPasswordPolicyDto> getPasswordPolicy(List<SysSystemDto> systems)
focal_class.class_method_signature: DefaultPasswordFilterManager.getSystemForAccounts(List<AccAccountDto> accounts)
focal_class.full_signature: private List<SysSystemDto> getSystemForAccounts(List<AccAccountDto> accounts)
focal_class.identifier: getSystemForAccounts
focal_class.modifiers: private
focal_class.parameters: (List<AccAccountDto> accounts)
focal_class.return: List<SysSystemDto>
focal_class.signature: List<SysSystemDto> getSystemForAccounts(List<AccAccountDto> accounts)
focal_class.class_method_signature: DefaultPasswordFilterManager.getSystem(String resource)
focal_class.full_signature: private SysSystemDto getSystem(String resource)
focal_class.identifier: getSystem
focal_class.modifiers: private
focal_class.parameters: (String resource)
focal_class.return: SysSystemDto
focal_class.signature: SysSystemDto getSystem(String resource)
focal_class.class_method_signature: DefaultPasswordFilterManager.getActiveUniformPasswordDefinitions(SysSystemDto systemDto)
focal_class.full_signature: private List<AccUniformPasswordDto> getActiveUniformPasswordDefinitions(SysSystemDto systemDto)
focal_class.identifier: getActiveUniformPasswordDefinitions
focal_class.modifiers: private
focal_class.parameters: (SysSystemDto systemDto)
focal_class.return: List<AccUniformPasswordDto>
focal_class.signature: List<AccUniformPasswordDto> getActiveUniformPasswordDefinitions(SysSystemDto systemDto)
focal_class.class_method_signature: DefaultPasswordFilterManager.getAttributeMappingForPasswordFilter(SysSystemDto system)
focal_class.full_signature: private SysSystemAttributeMappingDto getAttributeMappingForPasswordFilter(SysSystemDto system)
focal_class.identifier: getAttributeMappingForPasswordFilter
focal_class.modifiers: private
focal_class.parameters: (SysSystemDto system)
focal_class.return: SysSystemAttributeMappingDto
focal_class.signature: SysSystemAttributeMappingDto getAttributeMappingForPasswordFilter(SysSystemDto system)
focal_class.class_method_signature: DefaultPasswordFilterManager.getPasswordEncoder()
focal_class.full_signature: protected PasswordEncoder getPasswordEncoder()
focal_class.identifier: getPasswordEncoder
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: PasswordEncoder
focal_class.signature: PasswordEncoder getPasswordEncoder()
focal_class.class_method_signature: DefaultPasswordFilterManager.hashPassword(GuardedString password)
focal_class.full_signature: protected String hashPassword(GuardedString password)
focal_class.identifier: hashPassword
focal_class.modifiers: protected
focal_class.parameters: (GuardedString password)
focal_class.return: String
focal_class.signature: String hashPassword(GuardedString password)
focal_class.class_method_signature: DefaultPasswordFilterManager.getAccountsForPasswordChange(List<AccUniformPasswordDto> passwordDefinitions, UUID identityId, Boolean supportPasswordFilter)
focal_class.full_signature: private List<AccAccountDto> getAccountsForPasswordChange(List<AccUniformPasswordDto> passwordDefinitions, UUID identityId, Boolean supportPasswordFilter)
focal_class.identifier: getAccountsForPasswordChange
focal_class.modifiers: private
focal_class.parameters: (List<AccUniformPasswordDto> passwordDefinitions, UUID identityId, Boolean supportPasswordFilter)
focal_class.return: List<AccAccountDto>
focal_class.signature: List<AccAccountDto> getAccountsForPasswordChange(List<AccUniformPasswordDto> passwordDefinitions, UUID identityId, Boolean supportPasswordFilter)
focal_class.class_method_signature: DefaultPasswordFilterManager.getAccountForSystemWithPasswordFilter(SysSystemDto system, IdmIdentityDto identity)
focal_class.full_signature: private List<AccAccountDto> getAccountForSystemWithPasswordFilter(SysSystemDto system, IdmIdentityDto identity)
focal_class.identifier: getAccountForSystemWithPasswordFilter
focal_class.modifiers: private
focal_class.parameters: (SysSystemDto system, IdmIdentityDto identity)
focal_class.return: List<AccAccountDto>
focal_class.signature: List<AccAccountDto> getAccountForSystemWithPasswordFilter(SysSystemDto system, IdmIdentityDto identity)
focal_class.class_method_signature: DefaultPasswordFilterManager.changeInIdm(List<AccUniformPasswordDto> passwordDefinitions)
focal_class.full_signature: private boolean changeInIdm(List<AccUniformPasswordDto> passwordDefinitions)
focal_class.identifier: changeInIdm
focal_class.modifiers: private
focal_class.parameters: (List<AccUniformPasswordDto> passwordDefinitions)
focal_class.return: boolean
focal_class.signature: boolean changeInIdm(List<AccUniformPasswordDto> passwordDefinitions)
focal_class.class_method_signature: DefaultPasswordFilterManager.isPasswordEqual(AccPasswordFilterEchoItemDto echo, GuardedString password)
focal_class.full_signature: private boolean isPasswordEqual(AccPasswordFilterEchoItemDto echo, GuardedString password)
focal_class.identifier: isPasswordEqual
focal_class.modifiers: private
focal_class.parameters: (AccPasswordFilterEchoItemDto echo, GuardedString password)
focal_class.return: boolean
focal_class.signature: boolean isPasswordEqual(AccPasswordFilterEchoItemDto echo, GuardedString password)
focal_method.body: @Override
  	public void createEcho(UUID accountId, GuardedString password) {
  		AccPasswordFilterEchoItemDto echo = new AccPasswordFilterEchoItemDto(hashPassword(password), accountId);
  		ZonedDateTime now = ZonedDateTime.now();
  		echo.setValidityChecked(true);
  		echo.setChanged(true);
  		echo.setChangeDate(now);
  		echo.setValidateDate(now);
  		LOG.info("For account [{}] will be created new standard echo with validity and changed record.", accountId);
  		idmCacheManager.cacheValue(ECHO_CACHE_NAME, accountId, echo);
  	}
focal_method.class_method_signature: DefaultPasswordFilterManager.createEcho(UUID accountId, GuardedString password)
focal_method.full_signature: @Override public void createEcho(UUID accountId, GuardedString password)
focal_method.identifier: createEcho
focal_method.invocations: hashPassword now setValidityChecked setChanged setChangeDate setValidateDate info cacheValue
focal_method.modifiers: @Override public
focal_method.parameters: (UUID accountId, GuardedString password)
focal_method.return: void
focal_method.signature: void createEcho(UUID accountId, GuardedString password)