@types/jsrsasign
Version:
TypeScript definitions for jsrsasign
26 lines (25 loc) • 961 B
TypeScript
declare namespace jsrsasign.KJUR.asn1.cms {
/**
* class for CMS SigningTime attribute
* @param params associative array of parameters
* @description
* ```
* Attribute ::= SEQUENCE {
* type OBJECT IDENTIFIER,
* values AttributeSetValue }
* AttributeSetValue ::= SET OF ANY
* SigningTime ::= Time
* Time ::= CHOICE {
* utcTime UTCTime,
* generalTime GeneralizedTime }
* ```
* @example
* o = new KJUR.asn1.cms.SigningTime(); // current time UTCTime by default
* o = new KJUR.asn1.cms.SigningTime({type: 'gen'}); // current time GeneralizedTime
* o = new KJUR.asn1.cms.SigningTime({str: '20140517093800Z'}); // specified GeneralizedTime
* o = new KJUR.asn1.cms.SigningTime({str: '140517093800Z'}); // specified UTCTime
*/
class SigningTime extends Attribute {
constructor(params?: TypeParam | StringParam);
}
}