static void putEntityDescriptor(String realm,String entityId,EntityDescriptorElement descriptor){
  String cacheKey=buildCacheKey(realm,entityId);
  if (descriptor != null) {
    if (debug.messageEnabled()) {
      debug.message("SAML2MetaCache.putEntityDescriptor: cacheKey = " + cacheKey);
    }
    descriptorCache.put(cacheKey,descriptor);
  }
 else {
    if (debug.messageEnabled()) {
      debug.message("SAML2MetaCache.putEntityDescriptor: delete cacheEey = " + cacheKey);
    }
    descriptorCache.remove(cacheKey);
    configCache.remove(cacheKey);
  }
}

static void putEntityDescriptor ( String realm , String entityId , EntityDescriptorElement descriptor ) { String cacheKey = buildCacheKey ( realm , entityId ) ; if ( descriptor != null ) { if ( debug . messageEnabled ( ) ) { debug . message ( "SAML2MetaCache.putEntityDescriptor: cacheKey = " + cacheKey ) ; } descriptorCache . put ( cacheKey , descriptor ) ; } else { if ( debug . messageEnabled ( ) ) { debug . message ( "SAML2MetaCache.putEntityDescriptor: delete cacheEey = " + cacheKey ) ; } descriptorCache . remove ( cacheKey ) ; configCache . remove ( cacheKey ) ; } }
adds the standard metadata entity descriptor under the realm to cache .
