aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java')
-rw-r--r--libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java b/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java
deleted file mode 100644
index 27934bf65..000000000
--- a/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/jcajce/JcaSignerId.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.spongycastle.cms.jcajce;
-
-import java.math.BigInteger;
-import java.security.cert.X509Certificate;
-
-import javax.security.auth.x500.X500Principal;
-
-import org.spongycastle.asn1.x500.X500Name;
-import org.spongycastle.cms.SignerId;
-
-public class JcaSignerId
- extends SignerId
-{
- /**
- * Construct a signer identifier based on the issuer, serial number and subject key identifier (if present) of the passed in
- * certificate.
- *
- * @param certificate certificate providing the issue and serial number and subject key identifier.
- */
- public JcaSignerId(X509Certificate certificate)
- {
- super(convertPrincipal(certificate.getIssuerX500Principal()), certificate.getSerialNumber(), CMSUtils.getSubjectKeyId(certificate));
- }
-
- /**
- * Construct a signer identifier based on the provided issuer and serial number..
- *
- * @param issuer the issuer to use.
- * @param serialNumber the serial number to use.
- */
- public JcaSignerId(X500Principal issuer, BigInteger serialNumber)
- {
- super(convertPrincipal(issuer), serialNumber);
- }
-
- /**
- * Construct a signer identifier based on the provided issuer, serial number, and subjectKeyId..
- *
- * @param issuer the issuer to use.
- * @param serialNumber the serial number to use.
- * @param subjectKeyId the subject key ID to use.
- */
- public JcaSignerId(X500Principal issuer, BigInteger serialNumber, byte[] subjectKeyId)
- {
- super(convertPrincipal(issuer), serialNumber, subjectKeyId);
- }
-
- private static X500Name convertPrincipal(X500Principal issuer)
- {
- if (issuer == null)
- {
- return null;
- }
- return X500Name.getInstance(issuer.getEncoded());
- }
-}