All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apereo.cas.nativex.CasPasswordManagementRuntimeHints Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy