Class ConfigurationManager


  • public class ConfigurationManager
    extends java.lang.Object
    • Method Detail

      • initConfiguration

        public void initConfiguration​(java.lang.String key)
        See also: ... This is step 5.) authenticate(String opennmsKey, environment-uuid, system-uuid) return cert, grpc endpoint
      • renewCerts

        public void renewCerts()
                        throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException
      • configure

        public ConfigurationManager.ConfigStatus configure()
        See also: ... These are the steps // 9.) getServices // 10.) getAccessToken (cert, system-uuid, service) return token synchronized: its ok to call the method multiple times but we don't want it to be called at the same time (just in case). It is accessed from multiple Threads, e.g. from Housekeeper
      • getTokenExpiration

        public java.time.Instant getTokenExpiration()
      • getCertExpiration

        public java.time.Instant getCertExpiration()