Class CertificateIDBC

  • All Implemented Interfaces:
    ICertificateID

    public class CertificateIDBC
    extends java.lang.Object
    implements ICertificateID
    Wrapper class for CertificateID.
    • Field Detail

      • certificateID

        private final org.bouncycastle.cert.ocsp.CertificateID certificateID
    • Constructor Detail

      • CertificateIDBC

        public CertificateIDBC​(org.bouncycastle.cert.ocsp.CertificateID certificateID)
        Creates new wrapper instance for CertificateID.
        Parameters:
        certificateID - CertificateID to be wrapped
      • CertificateIDBC

        public CertificateIDBC​(IDigestCalculator digestCalculator,
                               IX509CertificateHolder certificateHolder,
                               java.math.BigInteger bigInteger)
                        throws OCSPExceptionBC
        Creates new wrapper instance for CertificateID.
        Parameters:
        digestCalculator - DigestCalculator wrapper to create CertificateID
        certificateHolder - X509CertificateHolder wrapper to create CertificateID
        bigInteger - BigInteger to create CertificateID
        Throws:
        OCSPExceptionBC - if OCSPException occurs during CertificateID instance creation.
    • Method Detail

      • getCertificateID

        public org.bouncycastle.cert.ocsp.CertificateID getCertificateID()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped CertificateID.
      • getSerialNumber

        public java.math.BigInteger getSerialNumber()
        Calls actual getSerialNumber method for the wrapped CertificateID object.
        Specified by:
        getSerialNumber in interface ICertificateID
        Returns:
        serial number value.
      • equals

        public boolean equals​(java.lang.Object o)
        Indicates whether some other object is "equal to" this one. Compares wrapped objects.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hash code value based on the wrapped object.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Delegates toString method call to the wrapped object.
        Overrides:
        toString in class java.lang.Object