01: package org.bouncycastle.cms;
02:
03: import org.bouncycastle.asn1.cms.AttributeTable;
04:
05: import java.util.Map;
06:
07: /**
08: * Basic generator that just returns a preconstructed attribute table
09: */
10: public class SimpleAttributeTableGenerator implements
11: CMSAttributeTableGenerator {
12: private final AttributeTable attributes;
13:
14: public SimpleAttributeTableGenerator(AttributeTable attributes) {
15: this .attributes = attributes;
16: }
17:
18: public AttributeTable getAttributes(Map parameters) {
19: return attributes;
20: }
21: }
|