Class AlgorithmUsageEvent
java.lang.Object
com.itextpdf.signatures.validation.events.AlgorithmUsageEvent
- All Implemented Interfaces:
-
IEvent,IValidationEvent
This event triggers everytime an algorithm is used during signature validation.
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmUsageEvent(String name, String oid, String usageLocation) Instantiates a new event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the event type of the event, this fields is used to avoid instanceof usage.getName()Returns the name of the algorithm if known.getOid()Returns the OID of the algorithm if known.Returns the location where or purpose the algorithm us uses for.booleanReturns whether the algorithm is allowed according to ETSI TS 319 142-1.booleanReturns whether the algorithm is allowed according to ETSI TS 119 312.toString()
-
Constructor Details
-
AlgorithmUsageEvent
Instantiates a new event.- Parameters:
-
name- the algorithm name -
oid- the algorithm oid -
usageLocation- the location the algorithm was used
-
-
Method Details
-
getEventType
Returns the event type of the event, this fields is used to avoid instanceof usage.- Specified by:
-
getEventTypein interfaceIValidationEvent - 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
Returns the name of the algorithm if known.- Returns:
- the name of the algorithm if known
-
getUsageLocation
Returns the location where or purpose the algorithm us uses for.- Returns:
- the location where or purpose the algorithm us uses for
-
getOid
Returns the OID of the algorithm if known.- Returns:
- the OID of the algorithm if known
-
toString
-