Class RekorTypes


  • public class RekorTypes
    extends java.lang.Object
    Parser for the body.spec element of RekorEntry.
    • Constructor Summary

      Constructors 
      Constructor Description
      RekorTypes()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HashedRekord getHashedRekord​(RekorEntry entry)
      Parse a hashedrekord from rekor at api version 0.0.1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RekorTypes

        public RekorTypes()
    • Method Detail

      • getHashedRekord

        public static HashedRekord getHashedRekord​(RekorEntry entry)
                                            throws RekorTypeException
        Parse a hashedrekord from rekor at api version 0.0.1.
        Parameters:
        entry - the rekor entry obtained from rekor
        Returns:
        the parsed pojo
        Throws:
        RekorTypeException - if the kind != hashedrekord or apiVersion != 0.0.1