congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LoginToContinue
Code IndexAdd Tabnine to your IDE (free)

How to use
LoginToContinue
in
javax.security.enterprise.authentication.mechanism.http

Best Java code snippets using javax.security.enterprise.authentication.mechanism.http.LoginToContinue (Showing top 12 results out of 315)

origin: org.glassfish.soteria/javax.security.enterprise

public static LoginToContinue eval(LoginToContinue in) {
  if (!hasAnyELExpression(in)) {
    return in;
  }
  
  try {
  LoginToContinueAnnotationLiteral out =
    new LoginToContinueAnnotationLiteral(
        evalImmediate(in.loginPage()), 
        evalImmediate(in.useForwardToLoginExpression(), in.useForwardToLogin()), 
        emptyIfImmediate(in.useForwardToLoginExpression()),
        evalImmediate(in.errorPage())
    );
  
  out.setHasDeferredExpressions(hasAnyELExpression(out));
  
  return out;
  } catch (Throwable t) {
    t.printStackTrace();
    
    throw t;
  }
}

origin: org.glassfish.soteria/javax.security.enterprise

public static boolean hasAnyELExpression(LoginToContinue in) {
  return AnnotationELPProcessor.hasAnyELExpression(
    in.loginPage(), 
    in.errorPage(),
    in.useForwardToLoginExpression()
  );
}
origin: org.glassfish.soteria/javax.security.enterprise

if (loginToContinueAnnotation.useForwardToLogin()) {
  return httpMessageContext.forward(
    loginToContinueAnnotation.loginPage());
} else {
  return httpMessageContext.redirect(
    getBaseURL(request) + loginToContinueAnnotation.loginPage());
  String errorPage = getLoginToContinueAnnotation(invocationContext).errorPage();
origin: org.glassfish.soteria/javax.security.enterprise

@LoginToContinue  // Redirects to form page if protected resource and not-logged in
@Typed(CustomFormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism
public class CustomFormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
origin: javaee/security-soteria

public static boolean hasAnyELExpression(LoginToContinue in) {
  return AnnotationELPProcessor.hasAnyELExpression(
    in.loginPage(), 
    in.errorPage(),
    in.useForwardToLoginExpression()
  );
}
origin: javaee/security-soteria

if (loginToContinueAnnotation.useForwardToLogin()) {
  return httpMessageContext.forward(
    loginToContinueAnnotation.loginPage());
} else {
  return httpMessageContext.redirect(
    getBaseURL(request) + loginToContinueAnnotation.loginPage());
  String errorPage = getLoginToContinueAnnotation(invocationContext).errorPage();
origin: javaee/security-soteria

@LoginToContinue  // Redirects to form page if protected resource and not-logged in
@Typed(CustomFormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism
public class CustomFormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
origin: javaee/security-soteria

public static LoginToContinue eval(LoginToContinue in) {
  if (!hasAnyELExpression(in)) {
    return in;
  }
  
  try {
  LoginToContinueAnnotationLiteral out =
    new LoginToContinueAnnotationLiteral(
        evalImmediate(in.loginPage()), 
        evalImmediate(in.useForwardToLoginExpression(), in.useForwardToLogin()), 
        emptyIfImmediate(in.useForwardToLoginExpression()),
        evalImmediate(in.errorPage())
    );
  
  out.setHasDeferredExpressions(hasAnyELExpression(out));
  
  return out;
  } catch (Throwable t) {
    t.printStackTrace();
    
    throw t;
  }
}

origin: javaee/security-soteria

@LoginToContinue  // Redirects to form page if protected resource and not-logged in
@Typed(FormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism
public class FormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
origin: org.glassfish.soteria/javax.security.enterprise

@LoginToContinue  // Redirects to form page if protected resource and not-logged in
@Typed(FormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism
public class FormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
origin: javaee/security-soteria

@Interceptor
@LoginToContinue
@Priority(PLATFORM_BEFORE + 220)
public class LoginToContinueInterceptor implements Serializable {
origin: org.glassfish.soteria/javax.security.enterprise

@Interceptor
@LoginToContinue
@Priority(PLATFORM_BEFORE + 220)
public class LoginToContinueInterceptor implements Serializable {
javax.security.enterprise.authentication.mechanism.httpLoginToContinue

Most used methods

  • <init>
  • errorPage
  • loginPage
  • useForwardToLogin
  • useForwardToLoginExpression

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now