Class AlgorithmUsageEvent

java.lang.Object
com.itextpdf.signatures.validation.events.AlgorithmUsageEvent
All Implemented Interfaces:
IEvent, IValidationEvent

public class AlgorithmUsageEvent extends Object implements IValidationEvent
This event triggers everytime an algorithm is used during signature validation.
  • Constructor Details

    • AlgorithmUsageEvent

      public AlgorithmUsageEvent (String name, String oid, String usageLocation)
      Instantiates a new event.
      Parameters:
      name - the algorithm name
      oid - the algorithm oid
      usageLocation - the location the algorithm was used
  • Method Details

    • getEventType

      public EventType getEventType()
      Returns the event type of the event, this fields is used to avoid instanceof usage.
      Specified by:
      getEventType in interface IValidationEvent
      Returns:
      the event type of the event
    • isAllowedAccordingToEtsiTs119_312

      public boolean isAllowedAccordingToEtsiTs119_312()
      Returns whether the algorithm is allowed according to ETSI TS 119 312.
      Returns:
      whether the algorithm is allowed according to ETSI TS 119 312
    • isAllowedAccordingToAdES

      public boolean isAllowedAccordingToAdES()
      Returns whether the algorithm is allowed according to ETSI TS 319 142-1.
      Returns:
      whether the algorithm is allowed according to ETSI TS 319 142-1
    • getName

      public String getName()
      Returns the name of the algorithm if known.
      Returns:
      the name of the algorithm if known
    • getUsageLocation

      public String getUsageLocation()
      Returns the location where or purpose the algorithm us uses for.
      Returns:
      the location where or purpose the algorithm us uses for
    • getOid

      public String getOid()
      Returns the OID of the algorithm if known.
      Returns:
      the OID of the algorithm if known
    • toString

      public String toString()
      Overrides:
      toString in class Object