1b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampackage org.bouncycastle.jce.interfaces;
2b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
3b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallamimport java.util.Enumeration;
4b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
54c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstromimport org.bouncycastle.asn1.ASN1Encodable;
64c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstromimport org.bouncycastle.asn1.ASN1ObjectIdentifier;
7b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallamimport org.bouncycastle.asn1.DERObjectIdentifier;
8b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
9b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam/**
10b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam * allow us to set attributes on objects that can go into a PKCS12 store.
11b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam */
12b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampublic interface PKCS12BagAttributeCarrier
13b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam{
14c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom    void setBagAttribute(
154c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstrom        ASN1ObjectIdentifier oid,
164c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstrom        ASN1Encodable attribute);
17b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
184c111300c39cb2e27f07fc2ae3b00e23ed4443b2Brian Carlstrom    ASN1Encodable getBagAttribute(
19b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam        DERObjectIdentifier oid);
20b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
21c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom    Enumeration getBagAttributeKeys();
22b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam}
23