Home | History | Annotate | Download | only in cms
      1 package org.bouncycastle.cms;
      2 
      3 import org.bouncycastle.asn1.cms.AttributeTable;
      4 
      5 import java.util.Map;
      6 
      7 /**
      8  * Basic generator that just returns a preconstructed attribute table
      9  */
     10 public class SimpleAttributeTableGenerator
     11     implements CMSAttributeTableGenerator
     12 {
     13     private final AttributeTable attributes;
     14 
     15     public SimpleAttributeTableGenerator(
     16         AttributeTable attributes)
     17     {
     18         this.attributes = attributes;
     19     }
     20 
     21     public AttributeTable getAttributes(Map parameters)
     22     {
     23         return attributes;
     24     }
     25 }
     26