1 package org.bouncycastle.jce.interfaces; 2 3 import java.util.Enumeration; 4 5 import org.bouncycastle.asn1.ASN1Encodable; 6 import org.bouncycastle.asn1.ASN1ObjectIdentifier; 7 8 /** 9 * allow us to set attributes on objects that can go into a PKCS12 store. 10 */ 11 public interface PKCS12BagAttributeCarrier 12 { setBagAttribute( ASN1ObjectIdentifier oid, ASN1Encodable attribute)13 void setBagAttribute( 14 ASN1ObjectIdentifier oid, 15 ASN1Encodable attribute); 16 getBagAttribute( ASN1ObjectIdentifier oid)17 ASN1Encodable getBagAttribute( 18 ASN1ObjectIdentifier oid); 19 getBagAttributeKeys()20 Enumeration getBagAttributeKeys(); 21 } 22