setValidityInfo
fun setValidityInfo(signed: Instant, validFrom: Instant, validUntil: Instant, expectedUpdate: Instant?): MobileSecurityObjectGenerator
Sets the ValidityInfo
structure which contains information related to the validity of the MSO and its signature. This must be called before generating since this a required component of the MobileSecurityObject
.
Return
The MobileSecurityObjectGenerator
.
Parameters
signed
The timestamp at which the MSO signature was created.
validFrom
The timestamp before which the MSO is not yet valid. This shall be equal or later than the signed element.
validUntil
The timestamp after which the MSO is no longer valid. This shall be later than the validFrom element.
expectedUpdate
Optional: if provided, represents the timestamp at which the issuing authority infrastructure expects to re-sign the MSO, else, null
Throws
if the times are do not meet the constraints.