use of com.github.zhenwei.core.asn1.ASN1IA5String in project LinLong-Java by zhenwei1108.
the class CMSTimeStampedGenerator method setMetaData.
/**
* Set the MetaData for the generated message.
*
* @param hashProtected true if the MetaData should be included in first imprint calculation,
* false otherwise.
* @param fileName optional file name, may be null.
* @param mediaType optional media type, may be null.
* @param attributes optional attributes, may be null.
*/
public void setMetaData(boolean hashProtected, String fileName, String mediaType, Attributes attributes) {
ASN1UTF8String asn1FileName = null;
if (fileName != null) {
asn1FileName = new DERUTF8String(fileName);
}
ASN1IA5String asn1MediaType = null;
if (mediaType != null) {
asn1MediaType = new DERIA5String(mediaType);
}
setMetaData(hashProtected, asn1FileName, asn1MediaType, attributes);
}
Aggregations