stack jmoordb
  • Introduction
  • stack/Migracion
    • jmoordbutils
    • jmoordbsecurity
    • jmoordb
      • Todos componentes
      • eliminar
    • jmoordbjsf
      • Template.xhtml
      • autocomplete
      • css
      • Migrar todos los componentes
    • jmoordbaudit
      • migracion
    • toolbarsave
  • MigrarEJB Project
  • Migrar Controller
  • Migrar LoginController
  • Migrar Primefaces
  • Eliminar LookupServices.java
  • Distribuir componentes en jar
    • Distribuir componentes desde Java Class
      • Distribuir componentes desde Java Class
      • Crear composite Maven
  • IController
    • IController
      • IController
      • isNew a validationNew
      • save()
      • @Aspect
  • Implementar Java EE 8 APi Security
    • Implementar Java EE 8 APi Security
      • web.xml
      • CustomInMemoryIdentityStore.java
      • Renombrar la Clase Application
      • list.xhtml
      • ApplicationConfig.java
      • top.xhtml
      • index.xhtml
Powered by GitBook
On this page

Was this helpful?

  1. Implementar Java EE 8 APi Security
  2. Implementar Java EE 8 APi Security

ApplicationConfig.java

import javax.enterprise.context.ApplicationScoped;
import javax.faces.annotation.FacesConfig;
import javax.security.enterprise.authentication.mechanism.http.CustomFormAuthenticationMechanismDefinition;
import javax.security.enterprise.authentication.mechanism.http.LoginToContinue;

/**
 *
 * @author avbravo
 */
@CustomFormAuthenticationMechanismDefinition(
        loginToContinue = @LoginToContinue(
                loginPage = "/faces/login.xhtml",
                useForwardToLogin = false
            )
)
@FacesConfig
@ApplicationScoped
public class ApplicationConfig {

}
Previouslist.xhtmlNexttop.xhtml

Last updated 6 years ago

Was this helpful?