Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java')
-rw-r--r--prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java b/prov/src/main/java/org/spongycastle/jce/interfaces/PKCS12BagAttributeCarrier.java
new file mode 100644
index 00000000..fe3a0cb6
--- /dev/null
+++ b/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();
+}