Top Description Inners Methods
jakarta.security.enterprise.authentication.mechanism.http

public @Interface AutoApplySession

extends Annotation
Known Direct Implementers
jakarta.security.enterprise.authentication.mechanism.http.AutoApplySession.Literal
Annotations
@Inherited
@InterceptorBinding
@Retention:RUNTIME
@Target:TYPE
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

The AutoApplySession annotation provides an application the ability to declaratively designate that an authentication mechanism uses the jakarta.servlet.http.registerSession and auto applies this for every request.

See the Jakarta Authentication spec for further details on jakarta.servlet.http.registerSession.

This support is provided via an implementation of a Jakarta Interceptors interceptor that conducts the necessary logic.

Example:


    @RequestScoped
    @AutoApplySession
    public class CustomAuthenticationMechanism implements HttpAuthenticationMechanism {
        // ...
    }

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AutoApplySession.Literal

Supports inline instantiation of the AutoApplySession annotation.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
jakarta.security.enterprise.authentication.mechanism.http back to summary

public final Class AutoApplySession.Literal

extends AnnotationLiteral<AutoApplySession>
implements AutoApplySession
Class Inheritance
All Implemented Interfaces
jakarta.security.enterprise.authentication.mechanism.http.AutoApplySession, java.lang.annotation.Annotation

Supports inline instantiation of the AutoApplySession annotation.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final AutoApplySession.Literal
INSTANCE

Instance of the AutoApplySession Interceptor Binding.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final AutoApplySession.Literal INSTANCE

Instance of the AutoApplySession Interceptor Binding.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()