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