LoginToContinue annotation provides an application the ability to declaratively
add login to continue functionality to an authentication mechanism.
When the LoginToContinue annotation is used on a custom authentication mechanism, Expression Language
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.
When the LoginToContinue annotation is used as attribute in either the
FormAuthenticationMechanismDefinition or CustomFormAuthenticationMechanismDefinition,
expressions using immediate syntax are evaluated only once when the HttpAuthenticationMechanism
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 LoginToContinue annotation
is used on a custom authentication mechanism.
| Modifier and Type | Class and Description |
|---|---|
| public static class | LoginToContinue.Literal
Supports inline instantiation of the LoginToContinue annotation. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: page a caller is directed to after an authentication (login) errorThe resource (page) a caller should get to see in case an error, such as providing invalid
credentials, occurs on the page set by |
| public String | Returns: page a caller is directed to to authenticate (login)The resource (page) a caller should get to see in case the originally requested resource requires authentication, and the caller is currently not authenticated. |
| public boolean | Returns: true if a forward is to be used, false for a redirectUse a forward to reach the page set by the |
| public String | Returns: an expression evaluating to true if a forward is to be used, false for a redirectJakarta Expression Language expression variant of |
| errorPage | back to summary |
|---|---|
| public String errorPage() The resource (page) a caller should get to see in case an error, such as providing invalid
credentials, occurs on the page set by
| |
| loginPage | back to summary |
|---|---|
| public String loginPage() The resource (page) a caller should get to see in case the originally requested resource requires authentication, and the caller is currently not authenticated.
| |
| useForwardToLogin | back to summary |
|---|---|
| public boolean useForwardToLogin() Use a forward to reach the page set by the
| |
| useForwardToLoginExpression | back to summary |
|---|---|
| public String useForwardToLoginExpression() Jakarta Expression Language expression variant of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final LoginToContinue. | INSTANCE
Default instance of the |
| private final String | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | errorPage()
Implements jakarta. LoginToContinue#loginPage().
|
| public String | loginPage()
Implements jakarta. |
| public static LoginToContinue. | Returns: instance of theLoginToContinue Interceptor Binding.page a caller is directed to to authenticate (login) loginPage, boolean true if a forward is to be used, false for a redirect useForwardToLogin, String an expression evaluating to true if a forward is to be used, false for a redirect useForwardToLoginExpression, String page a caller is directed to after an authentication (login) error errorPage)Instance of the |
| public boolean | useForwardToLogin()
Implements jakarta. LoginToContinue#loginPage()
if true, otherwise use a redirect.
|
| public String | useForwardToLoginExpression()
Implements jakarta. useForwardToLogin().
|
| errorPage | back to summary |
|---|---|
| private final String errorPage | |
| INSTANCE | back to summary |
|---|---|
| public static final LoginToContinue. Default instance of the | |
| loginPage | back to summary |
|---|---|
| private final String loginPage | |
| useForwardToLogin | back to summary |
|---|---|
| private final boolean useForwardToLogin | |
| useForwardToLoginExpression | back to summary |
|---|---|
| private final String useForwardToLoginExpression | |
| Literal | back to summary |
|---|---|
| private Literal(String loginPage, boolean useForwardToLogin, String useForwardToLoginExpression, String errorPage) | |
| errorPage | back to summary |
|---|---|
| public String errorPage() Implements jakarta. Doc from jakarta. The resource (page) a caller should get to see in case an error, such as providing invalid
credentials, occurs on the page set by | |
| loginPage | back to summary |
|---|---|
| public String loginPage() Implements jakarta. Doc from jakarta. The resource (page) a caller should get to see in case the originally requested resource requires authentication, and the caller is currently not authenticated. | |
| of | back to summary |
|---|---|
| public static LoginToContinue. Instance of the
| |
| useForwardToLogin | back to summary |
|---|---|
| public boolean useForwardToLogin() Implements jakarta. Doc from jakarta. Use a forward to reach the page set by the
| |
| useForwardToLoginExpression | back to summary |
|---|---|
| public String useForwardToLoginExpression() Implements jakarta. Jakarta Expression Language expression variant of | |