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

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

The newest version!
package org.apereo.cas.nativex;

import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import lombok.val;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.security.web.csrf.CsrfToken;

/**
 * This is {@link CasWebAppRuntimeHints}.
 *
 * @author Misagh Moayyed
 * @since 7.0.0
 */
public class CasWebAppRuntimeHints implements CasRuntimeHintsRegistrar {
    @Override
    public void registerHints(final RuntimeHints hints, final ClassLoader classLoader) {
        val csrfTokens = findSubclassesInPackage(CsrfToken.class, CsrfToken.class.getPackageName());
        registerReflectionHints(hints, csrfTokens);
        registerSerializationHints(hints, csrfTokens);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy