Interface ICRLRepository

  • All Known Implementing Classes:
    CRLRepository

    public interface ICRLRepository
    An interface represents a CMS CRL repository. It stores all the CRL issuing points.
    Version:
    $Revision$, $Date$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addCRLIssuingPointRecord​(ICRLIssuingPointRecord rec)
      Adds CRL issuing point record.
      void deleteCRLIssuingPointRecord​(java.lang.String id)
      Deletes issuing point record.
      java.util.Vector<java.lang.String> getIssuingPointsNames()
      Retrieves all the issuing points' names.
      void modifyCRLIssuingPointRecord​(java.lang.String id, ModificationSet mods)
      Modifies issuing point record.
      ICRLIssuingPointRecord readCRLIssuingPointRecord​(java.lang.String id)
      Reads issuing point record.
      void updateCRLCache​(java.lang.String id, java.lang.Long crlSize, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
      Updates CRL issuing point record.
      void updateCRLIssuingPointRecord​(java.lang.String id, byte[] newCRL, java.util.Date thisUpdate, java.util.Date nextUpdate, java.math.BigInteger crlNumber, java.lang.Long crlSize)
      Updates CRL issuing point record.
      void updateCRLIssuingPointRecord​(java.lang.String id, byte[] newCRL, java.util.Date thisUpdate, java.util.Date nextUpdate, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
      Updates CRL issuing point record.
      void updateDeltaCRL​(java.lang.String id, java.math.BigInteger deltaCRLNumber, java.lang.Long deltaCRLSize, java.util.Date nextUpdate, byte[] deltaCRL)
      Updates CRL issuing point record with delta-CRL.
      void updateExpiredCerts​(java.lang.String id, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
      Updates CRL issuing point record.
      void updateFirstUnsaved​(java.lang.String id, java.lang.String firstUnsaved)
      Updates CRL issuing point record with reference to the first unsaved data.
      void updateRevokedCerts​(java.lang.String id, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts, java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts)
      Updates CRL issuing point record.
    • Method Detail

      • getIssuingPointsNames

        java.util.Vector<java.lang.String> getIssuingPointsNames()
                                                          throws EBaseException
        Retrieves all the issuing points' names.
        Returns:
        A list of issuing points' names.
        Throws:
        EBaseException - failed to retrieve all the issuing points' names.
      • deleteCRLIssuingPointRecord

        void deleteCRLIssuingPointRecord​(java.lang.String id)
                                  throws EBaseException
        Deletes issuing point record.
        Parameters:
        id - issuing point record id
        Throws:
        EBaseException - failed to delete issuing point record
      • modifyCRLIssuingPointRecord

        void modifyCRLIssuingPointRecord​(java.lang.String id,
                                         ModificationSet mods)
                                  throws EBaseException
        Modifies issuing point record.
        Parameters:
        id - issuing point record id
        mods - set of modifications
        Throws:
        EBaseException - failed to modify issuing point record
      • updateCRLIssuingPointRecord

        void updateCRLIssuingPointRecord​(java.lang.String id,
                                         byte[] newCRL,
                                         java.util.Date thisUpdate,
                                         java.util.Date nextUpdate,
                                         java.math.BigInteger crlNumber,
                                         java.lang.Long crlSize)
                                  throws EBaseException
        Updates CRL issuing point record.
        Parameters:
        id - issuing point record id
        newCRL - encoded binary CRL
        thisUpdate - time of this update
        nextUpdate - time of next update
        crlNumber - CRL number
        crlSize - CRL size
        Throws:
        EBaseException - failed to update issuing point record
      • updateCRLIssuingPointRecord

        void updateCRLIssuingPointRecord​(java.lang.String id,
                                         byte[] newCRL,
                                         java.util.Date thisUpdate,
                                         java.util.Date nextUpdate,
                                         java.math.BigInteger crlNumber,
                                         java.lang.Long crlSize,
                                         java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts,
                                         java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts,
                                         java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
                                  throws EBaseException
        Updates CRL issuing point record.
        Parameters:
        id - issuing point record id
        newCRL - encoded binary CRL
        thisUpdate - time of this update
        nextUpdate - time of next update
        crlNumber - CRL number
        crlSize - CRL size
        revokedCerts - list of revoked certificates
        unrevokedCerts - list of released from hold certificates
        expiredCerts - list of expired certificates
        Throws:
        EBaseException - failed to update issuing point record
      • updateRevokedCerts

        void updateRevokedCerts​(java.lang.String id,
                                java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts,
                                java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts)
                         throws EBaseException
        Updates CRL issuing point record.
        Parameters:
        id - issuing point record id
        revokedCerts - list of revoked certificates
        unrevokedCerts - list of released from hold certificates
        Throws:
        EBaseException - failed to update issuing point record
      • updateExpiredCerts

        void updateExpiredCerts​(java.lang.String id,
                                java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
                         throws EBaseException
        Updates CRL issuing point record.
        Parameters:
        id - issuing point record id
        expiredCerts - list of expired certificates
        Throws:
        EBaseException - failed to update issuing point record
      • updateCRLCache

        void updateCRLCache​(java.lang.String id,
                            java.lang.Long crlSize,
                            java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts,
                            java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts,
                            java.util.Hashtable<java.math.BigInteger,​org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)
                     throws EBaseException
        Updates CRL issuing point record.
        Parameters:
        id - issuing point record id
        crlSize - CRL size
        revokedCerts - list of revoked certificates
        unrevokedCerts - list of released from hold certificates
        expiredCerts - list of expired certificates
        Throws:
        EBaseException - failed to update issuing point record
      • updateDeltaCRL

        void updateDeltaCRL​(java.lang.String id,
                            java.math.BigInteger deltaCRLNumber,
                            java.lang.Long deltaCRLSize,
                            java.util.Date nextUpdate,
                            byte[] deltaCRL)
                     throws EBaseException
        Updates CRL issuing point record with delta-CRL.
        Parameters:
        id - issuing point record id
        deltaCRLNumber - delta CRL number
        deltaCRLSize - delta CRL size
        nextUpdate - time of next update
        deltaCRL - delta CRL in binary form
        Throws:
        EBaseException - failed to update issuing point record
      • updateFirstUnsaved

        void updateFirstUnsaved​(java.lang.String id,
                                java.lang.String firstUnsaved)
                         throws EBaseException
        Updates CRL issuing point record with reference to the first unsaved data.
        Parameters:
        id - issuing point record id
        firstUnsaved - reference to the first unsaved data
        Throws:
        EBaseException - failed to update issuing point record