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 'pkix/src/main/jdk1.3/org/bouncycastle/cms/jcajce/JcaSignerId.java')
-rw-r--r--pkix/src/main/jdk1.3/org/bouncycastle/cms/jcajce/JcaSignerId.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/pkix/src/main/jdk1.3/org/bouncycastle/cms/jcajce/JcaSignerId.java b/pkix/src/main/jdk1.3/org/bouncycastle/cms/jcajce/JcaSignerId.java
deleted file mode 100644
index 129e85e3..00000000
--- a/pkix/src/main/jdk1.3/org/bouncycastle/cms/jcajce/JcaSignerId.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.bouncycastle.cms.jcajce;
-
-import java.math.BigInteger;
-import java.security.cert.X509Certificate;
-
-import org.bouncycastle.asn1.x500.X500Name;
-import org.bouncycastle.cms.SignerId;
-import org.bouncycastle.jce.PrincipalUtil;
-import org.bouncycastle.jce.X509Principal;
-
-public class JcaSignerId
- extends SignerId
-{
- private static X509Principal getPrincipal(X509Certificate cert)
- {
- try
- {
- return PrincipalUtil.getIssuerX509Principal(cert);
- }
- catch (Exception e)
- {
- throw new IllegalArgumentException("unable to extract principle");
- }
- }
-
- /**
- * 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(X500Name.getInstance(getPrincipal(certificate).getEncoded()), certificate.getSerialNumber(), CMSUtils.getSubjectKeyId(certificate));
- }
-}