Interface CertificateStore


  • public interface CertificateStore
    A store of certificates. An implementation can be plugged in to provide certificates to components who use it.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getCertificate​(java.lang.String appid)
      Returns a certificate for a given appid, using the default TTL and retry time
      default java.lang.String getCertificate​(java.lang.String appid, long ttl)
      Returns a certificate for a given appid, using a TTL and default retry time
      java.lang.String getCertificate​(java.lang.String appid, long ttl, long retry)
      Returns a certificate for a given appid, using a TTL and default retry time
    • Method Detail

      • getCertificate

        default java.lang.String getCertificate​(java.lang.String appid)
        Returns a certificate for a given appid, using the default TTL and retry time
      • getCertificate

        default java.lang.String getCertificate​(java.lang.String appid,
                                                long ttl)
        Returns a certificate for a given appid, using a TTL and default retry time
      • getCertificate

        java.lang.String getCertificate​(java.lang.String appid,
                                        long ttl,
                                        long retry)
        Returns a certificate for a given appid, using a TTL and default retry time
        Parameters:
        ttl - certificate TTL in ms. Use the default TTL if set to 0
        retry - if no certificate is found, allow access to cert DB again in "retry" ms. Use the default retry time if set to 0.