@Inherited @InterceptorBinding @Retention(value=RUNTIME) @Target(value=TYPE) public @interface LoginToContinue
LoginToContinueannotation provides an application the ability to declaratively add login to continue functionality to an authentication mechanism.
LoginToContinue annotation is used on a custom authentication mechanism, EL
expressions in attributes of type
String are evaluated for every request requiring
authentication. Both immediate and deferred syntax is supported, but effectively the semantics
are always deferred.
LoginToContinue annotation is used as attribute in either the
expressions using immediate syntax are evaluated only once when the
bean is created. Since these beans are application scoped, this means only once per application.
Expressions using deferred syntax are evaluated as described above when the
is used on a custom authentication mechanism.
|Modifier and Type||Optional Element and Description|
The resource (page) a caller should get to see in case an error, such as providing invalid credentials, occurs on the page set by
The resource (page) a caller should get to see in case the originally requested resource requires authentication, and the caller is currently not authenticated.
Use a forward to reach the page set by the
Jakarta Expression Language expression variant of
public abstract java.lang.String loginPage
public abstract boolean useForwardToLogin
loginPage()if true, otherwise use a redirect.
public abstract java.lang.String useForwardToLoginExpression
useForwardToLogin(). The expression needs to evaluate to a boolean outcome. All named CDI beans are available to the expression. If both this attribute and
useForwardToLogin()are specified, this attribute take precedence.
public abstract java.lang.String errorPage