Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Latest commit

 

History

History

certlogic-kotlin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

CertLogic in Kotlin

This module contains the reference implementation of CertLogic, written in Kotlin/Java. It's compatible with version 1.3.2 of the CertLogic specification.

Apart from test sources, it consists of the following files:

  • CertLogic type defs and evaluator
  • A JsonDateTime Java class which is used to represent date-times, as if they were just another type of JSON values.
  • A TimeUnit Java enum with all the time units available for use in combination with the plusTime operation
  • A validator function to (format-)validate CertLogic expressions
  • A dataAccesses utility with functions that compute data accesses that may happen in a given CertLogic expression

The implementation relies on Jackson's types to represent JSON values.