org.apereo.cas.nativex.CasPasswordManagementRuntimeHints Maven / Gradle / Ivy
package org.apereo.cas.nativex;
import org.apereo.cas.pm.PasswordChangeRequest;
import org.apereo.cas.pm.PasswordResetTokenCipherExecutor;
import org.apereo.cas.pm.impl.JsonResourcePasswordManagementService;
import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import org.apereo.cas.web.CaptchaActivationStrategy;
import org.springframework.aot.hint.RuntimeHints;
import java.util.List;
/**
* This is {@link CasPasswordManagementRuntimeHints}.
*
* @author Misagh Moayyed
* @since 7.0.0
*/
public class CasPasswordManagementRuntimeHints implements CasRuntimeHintsRegistrar {
@Override
public void registerHints(final RuntimeHints hints, final ClassLoader classLoader) {
registerProxyHints(hints, CaptchaActivationStrategy.class);
registerReflectionHints(hints, List.of(
PasswordChangeRequest.class,
PasswordResetTokenCipherExecutor.class));
registerSerializationHints(hints, JsonResourcePasswordManagementService.JsonBackedAccount.class, PasswordChangeRequest.class);
}
}