aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java')
-rw-r--r--libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java b/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java
new file mode 100644
index 000000000..fe3a0cb62
--- /dev/null
+++ b/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java
@@ -0,0 +1,21 @@
+package org.spongycastle.jce.interfaces;
+
+import java.util.Enumeration;
+
+import org.spongycastle.asn1.ASN1Encodable;
+import org.spongycastle.asn1.ASN1ObjectIdentifier;
+
+/**
+ * allow us to set attributes on objects that can go into a PKCS12 store.
+ */
+public interface PKCS12BagAttributeCarrier
+{
+ void setBagAttribute(
+ ASN1ObjectIdentifier oid,
+ ASN1Encodable attribute);
+
+ ASN1Encodable getBagAttribute(
+ ASN1ObjectIdentifier oid);
+
+ Enumeration getBagAttributeKeys();
+}