Class ApiKeyProvider


  • public final class ApiKeyProvider
    extends java.lang.Object
    Provider of confidential imagery API keys.
    Since:
    15855
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.String,​java.lang.String> CACHE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ApiKeyProvider()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.List<java.lang.String> getApiKeySites()  
      static java.lang.String retrieveApiKey​(java.lang.String imageryId)
      Retrieves the API key for the given imagery id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CACHE

        private static final java.util.Map<java.lang.String,​java.lang.String> CACHE
    • Method Detail

      • getApiKeySites

        private static java.util.List<java.lang.String> getApiKeySites()
      • retrieveApiKey

        public static java.lang.String retrieveApiKey​(java.lang.String imageryId)
                                               throws java.io.IOException
        Retrieves the API key for the given imagery id.
        Parameters:
        imageryId - imagery id
        Returns:
        the API key for the given imagery id
        Throws:
        java.io.IOException - in case of I/O error