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 long
convertDuration
(TimeConstraint timeConstraint) Converts theTimeConstraint
to the corresponding long time value in millisecondsstatic long
convertDuration
(TimeUnit fromJaxb, TimeUnit toJaxb, int value) Converts the givenvalue
to the corresponding long value
-
Method Details
-
convertDuration
Converts the givenvalue
to the corresponding long value- Parameters:
fromJaxb
-eu.europa.esig.dss.policy.jaxb.TimeUnit
of the valuetoJaxb
-eu.europa.esig.dss.policy.jaxb.TimeUnit
to obtainvalue
- integer value to convert- Returns:
- long time value
-
convertDuration
Converts theTimeConstraint
to the corresponding long time value in milliseconds- Parameters:
timeConstraint
-TimeConstraint
- Returns:
- long time value in milliseconds
-