Package eu.europa.esig.dss.policy
Class RuleUtils
java.lang.Object
eu.europa.esig.dss.policy.RuleUtils
Converts
TimeConstraint from a policy into the corresponding long time value-
Method Summary
Modifier and TypeMethodDescriptionstatic longconvertDuration(TimeConstraint timeConstraint) Converts theTimeConstraintto the corresponding long time value in millisecondsstatic longconvertDuration(TimeUnit fromJaxb, TimeUnit toJaxb, int value) Converts the givenvalueto the corresponding long value
-
Method Details
-
convertDuration
Converts the givenvalueto the corresponding long value- Parameters:
fromJaxb-eu.europa.esig.dss.policy.jaxb.TimeUnitof the valuetoJaxb-eu.europa.esig.dss.policy.jaxb.TimeUnitto obtainvalue- integer value to convert- Returns:
- long time value
-
convertDuration
Converts theTimeConstraintto the corresponding long time value in milliseconds- Parameters:
timeConstraint-TimeConstraint- Returns:
- long time value in milliseconds
-