Class OldCertIDControl

java.lang.Object
org.bouncycastle.cert.crmf.OldCertIDControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
JcaOldCertIDControl

public class OldCertIDControl extends Object implements Control
Carrier for an old certificate ID control, naming the certificate a request is asking to have replaced - RFC 4211 sec. 6.5.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OldCertIDControl(org.bouncycastle.asn1.crmf.CertId certId)
    Basic constructor - build from the ID of the certificate to be replaced.
    OldCertIDControl(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serialNumber)
    Basic constructor - build from the issuer and serial number of the certificate to be replaced.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.crmf.CertId
    Return the certificate ID associated with this control.
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return the type of this control.
    org.bouncycastle.asn1.ASN1Encodable
    Return the certificate ID associated with this control.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OldCertIDControl

      public OldCertIDControl(org.bouncycastle.asn1.crmf.CertId certId)
      Basic constructor - build from the ID of the certificate to be replaced.
      Parameters:
      certId - the issuer and serial number of the certificate to be replaced.
    • OldCertIDControl

      public OldCertIDControl(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serialNumber)
      Basic constructor - build from the issuer and serial number of the certificate to be replaced.
      Parameters:
      issuer - the issuer of the certificate to be replaced.
      serialNumber - the serial number of the certificate to be replaced.
  • Method Details

    • getType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
      Return the type of this control.
      Specified by:
      getType in interface Control
      Returns:
      CRMFObjectIdentifiers.id_regCtrl_oldCertID
    • getValue

      public org.bouncycastle.asn1.ASN1Encodable getValue()
      Return the certificate ID associated with this control.
      Specified by:
      getValue in interface Control
      Returns:
      a CertId structure.
    • getCertId

      public org.bouncycastle.asn1.crmf.CertId getCertId()
      Return the certificate ID associated with this control.
      Returns:
      a CertId structure.