Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cert.crmf
Class OldCertIDControl

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

public class OldCertIDControl
extends java.lang.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
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, java.math.BigInteger serialNumber)
          Basic constructor - build from the issuer and serial number of the certificate to be replaced.
 
Method Summary
 org.bouncycastle.asn1.crmf.CertId getCertId()
          Return the certificate ID associated with this control.
 org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
          Return the type of this control.
 org.bouncycastle.asn1.ASN1Encodable getValue()
          Return the certificate ID associated with this control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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,
                        java.math.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 Detail

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.

Bouncy Castle Cryptography Library 1.87