aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java')
-rw-r--r--libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java b/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java
deleted file mode 100644
index d5ea1b8cf..000000000
--- a/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSAuthenticatedGenerator.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.spongycastle.cms;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.spongycastle.asn1.ASN1ObjectIdentifier;
-import org.spongycastle.asn1.x509.AlgorithmIdentifier;
-
-public class CMSAuthenticatedGenerator
- extends CMSEnvelopedGenerator
-{
- protected CMSAttributeTableGenerator authGen;
- protected CMSAttributeTableGenerator unauthGen;
-
- /**
- * base constructor
- */
- public CMSAuthenticatedGenerator()
- {
- }
-
- public void setAuthenticatedAttributeGenerator(CMSAttributeTableGenerator authGen)
- {
- this.authGen = authGen;
- }
-
- public void setUnauthenticatedAttributeGenerator(CMSAttributeTableGenerator unauthGen)
- {
- this.unauthGen = unauthGen;
- }
-
- protected Map getBaseParameters(ASN1ObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash)
- {
- Map param = new HashMap();
- param.put(CMSAttributeTableGenerator.CONTENT_TYPE, contentType);
- param.put(CMSAttributeTableGenerator.DIGEST_ALGORITHM_IDENTIFIER, digAlgId);
- param.put(CMSAttributeTableGenerator.DIGEST, hash.clone());
- return param;
- }
-}