View Javadoc
1 /* 2 * Title: S/MIME Project 3 * Description: S/MIME email sending capabilities 4 * @Author Vladimir Radisic 5 * @Version 2.0.1 6 */ 7 8 9 package org.webdocwf.util.smime.cms; 10 11 12 import org.webdocwf.util.smime.exception.SMIMEException; 13 import org.webdocwf.util.smime.der.DERUTCTime; 14 import org.webdocwf.util.smime.der.DERSet; 15 16 17 /*** 18 * Signing Time Attribute is signed attribute and it is used in creating CMS 19 * objects for signed messages. It defines time of signing according to 20 * Greenwich Mean Time. 21 */ 22 public class SigningTimeAttribute extends Attribute { 23 24 /*** 25 * Signing time is taken from system clock, and is increased or decreased due to 26 * a time zone offset in order to implement Greenwich Mean Time. 27 * @exception SMIMEException thrown in super class constructor or super class 28 * addContent method. 29 */ 30 public SigningTimeAttribute() throws SMIMEException { 31 super("ID_SIGNINGTIME", "NAME_STRING"); 32 DERUTCTime utc = new DERUTCTime(); // Generating utc signing time (this moment) 33 DERSet utcVal = new DERSet(); 34 35 utcVal.addContent(utc.getDEREncoded()); 36 super.addContent(utcVal.getDEREncoded()); 37 } 38 } 39

This page was automatically generated by Maven