- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file FormTrick.java.
◆ checkTrick()
static boolean org.turro.marker.FormTrick.checkTrick |
( |
String |
value | ) |
|
|
static |
Definition at line 39 of file FormTrick.java.
40 return Instant.parse(URLDecoder.decode(ElephantContext.decrypt(value), StandardCharsets.UTF_8)).isAfter(Instant.now());
◆ createTrick()
static String org.turro.marker.FormTrick.createTrick |
( |
int |
seconds | ) |
|
|
static |
Definition at line 35 of file FormTrick.java.
36 return URLEncoder.encode(ElephantContext.encrypt(Instant.now().plus(Duration.of(seconds, ChronoUnit.SECONDS)).toString()), StandardCharsets.UTF_8);
The documentation for this class was generated from the following file: