BrightSide Workbench Full Report + Source Code
org.turro.marker.FormTrick Class Reference

Static Public Member Functions

static String createTrick (int seconds)
 
static boolean checkTrick (String value)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file FormTrick.java.

Member Function Documentation

◆ checkTrick()

static boolean org.turro.marker.FormTrick.checkTrick ( String  value)
static

Definition at line 39 of file FormTrick.java.

39  {
40  return Instant.parse(URLDecoder.decode(ElephantContext.decrypt(value), StandardCharsets.UTF_8)).isAfter(Instant.now());
41  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTrick()

static String org.turro.marker.FormTrick.createTrick ( int  seconds)
static

Definition at line 35 of file FormTrick.java.

35  {
36  return URLEncoder.encode(ElephantContext.encrypt(Instant.now().plus(Duration.of(seconds, ChronoUnit.SECONDS)).toString()), StandardCharsets.UTF_8);
37  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: