Class OnlineOCSPSource

    • Constructor Detail

      • OnlineOCSPSource

        public OnlineOCSPSource()
        Create an OCSP source The default constructor for OnlineOCSPSource. The default OCSPDataLoader is set. It is possible to change it with #setDataLoader.
    • Method Detail

      • setNonceSource

        public void setNonceSource​(NonceSource nonceSource)
        Set the NonceSource to use for querying the OCSP server.
        Parameters:
        nonceSource - the component that prevents the replay attack.
      • getRevocationToken

        public OCSPToken getRevocationToken​(CertificateToken certificateToken,
                                            CertificateToken issuerCertificateToken)
        Description copied from interface: RevocationSource
        This method retrieves a RevocationToken for the certificateToken
        Specified by:
        getRevocationToken in interface RevocationSource<OCSPToken>
        Parameters:
        certificateToken - The CertificateToken for which the request is made
        issuerCertificateToken - The CertificateToken which is the issuer of the certificateToken
        Returns:
        an instance of RevocationToken
      • getRevocationToken

        public OCSPToken getRevocationToken​(CertificateToken certificateToken,
                                            CertificateToken issuerCertificateToken,
                                            List<String> alternativeUrls)
        Description copied from interface: RevocationSourceAlternateUrlsSupport
        Gets an RevocationToken for the given certificate / issuer's certificate couple. The coherence between the response and the request is checked.
        Specified by:
        getRevocationToken in interface RevocationSourceAlternateUrlsSupport<OCSPToken>
        Parameters:
        certificateToken - The CertificateToken for which the request is made
        issuerCertificateToken - The CertificateToken which is the issuer of the certificateToken
        alternativeUrls - The list of alternative urls to call
        Returns:
        RevocationToken containing information about the validity of the cert