Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[es-dev] Annotation literals added

Hi,

As a small API enhancement, I just added annotation literals modelled after CDI 2's annotation literals. 

See https://github.com/eclipse-ee4j/security-api/commit/e57b08ffe76938cd09c5dc151487201d0d8d8555

Examples can be see via the unit test:

https://github.com/eclipse-ee4j/security-api/blob/master/src/test/java/org/glassfish/security/AnnotationLiteralTest.java#L28

E.g.

RememberMe literal = RememberMe.Literal.of()
                                       .cookieMaxAgeSeconds(100)
                                       .cookieSecureOnly(false)
                                       .cookieHttpOnly(false)
                                       .build();

Kind regards,
Arjan



Back to the top