Class RememberMe.Literal
- java.lang.Object
-
- jakarta.enterprise.util.AnnotationLiteral<RememberMe>
-
- jakarta.security.enterprise.authentication.mechanism.http.RememberMe.Literal
-
- All Implemented Interfaces:
Annotation
- Enclosing class:
- RememberMe
public static final class RememberMe.Literal extends AnnotationLiteral<RememberMe> implements RememberMe
Supports inline instantiation of the RememberMe annotation.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.security.enterprise.authentication.mechanism.http.RememberMe
RememberMe.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static RememberMe.Literal
INSTANCE
Default instance of theRememberMe
Interceptor Binding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cookieHttpOnly()
String
cookieHttpOnlyExpression()
int
cookieMaxAgeSeconds()
String
cookieMaxAgeSecondsExpression()
String
cookieName()
boolean
cookieSecureOnly()
String
cookieSecureOnlyExpression()
boolean
isRememberMe()
String
isRememberMeExpression()
static RememberMe.Literal
of(int cookieMaxAgeSeconds, String cookieMaxAgeSecondsExpression, boolean cookieSecureOnly, String cookieSecureOnlyExpression, boolean cookieHttpOnly, String cookieHttpOnlyExpression, String cookieName, boolean isRememberMe, String isRememberMeExpression)
Instance of theRememberMe
Interceptor Binding.-
Methods inherited from class jakarta.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final RememberMe.Literal INSTANCE
Default instance of theRememberMe
Interceptor Binding.
-
-
Method Detail
-
of
public static RememberMe.Literal of(int cookieMaxAgeSeconds, String cookieMaxAgeSecondsExpression, boolean cookieSecureOnly, String cookieSecureOnlyExpression, boolean cookieHttpOnly, String cookieHttpOnlyExpression, String cookieName, boolean isRememberMe, String isRememberMeExpression)
Instance of theRememberMe
Interceptor Binding.- Parameters:
cookieMaxAgeSeconds
- Max age in seconds for the remember me cookie.cookieMaxAgeSecondsExpression
- Jakarta Expression Language expression variant ofcookieMaxAgeSeconds
cookieSecureOnly
- Flag to indicate that the remember me cookie should only be sent using a secure protocolcookieSecureOnlyExpression
- Jakarta Expression Language expression variant ofcookieSecureOnly
cookieHttpOnly
- true if the cookie should be sent only with HTTP requestscookieHttpOnlyExpression
- Jakarta Expression Language expression variant ofcookieHttpOnly
cookieName
- Name of the remember me cookie.isRememberMe
- Flag to determine if remember me should be used.isRememberMeExpression
- Jakarta Expression Language expression variant ofisRememberMe
- Returns:
- instance of the
RememberMe
Interceptor Binding
-
cookieHttpOnly
public boolean cookieHttpOnly()
-
cookieHttpOnlyExpression
public String cookieHttpOnlyExpression()
-
cookieMaxAgeSeconds
public int cookieMaxAgeSeconds()
-
cookieMaxAgeSecondsExpression
public String cookieMaxAgeSecondsExpression()
-
cookieSecureOnly
public boolean cookieSecureOnly()
-
cookieSecureOnlyExpression
public String cookieSecureOnlyExpression()
-
cookieName
public String cookieName()
-
isRememberMe
public boolean isRememberMe()
-
isRememberMeExpression
public String isRememberMeExpression()
-
-