Class TraceSignedRecord

java.lang.Object
io.jans.lock.trace.crypto.TraceSignedRecord

public final class TraceSignedRecord extends Object
A parsed signed TRACE record handed to TraceCryptoProvider.verifyAndDigest(io.jans.lock.trace.crypto.TraceSignedRecord, byte[], io.jans.lock.trace.crypto.TraceVerificationKey): the exact text received, its parsed root object and the two identifiers needed to select the verification key. The class never prints record content.
Author:
Yuriy Movchan
  • Constructor Details

    • TraceSignedRecord

      public TraceSignedRecord(String rawText, com.fasterxml.jackson.databind.node.ObjectNode root, String producer, String kid)
  • Method Details

    • getRawText

      public String getRawText()
      Returns:
      the record text exactly as received
    • getRoot

      public com.fasterxml.jackson.databind.node.ObjectNode getRoot()
      Returns:
      the parsed record, including the top-level signature member
    • getProducer

      public String getProducer()
      Returns:
      the producer id of the record
    • getKid

      public String getKid()
      Returns:
      the key id the record names