Package javax.security.auth.message.config

Examples of javax.security.auth.message.config.RegistrationListener


/* 262 */     this.providerToIDListMap.put(provider, list);
/* 263 */     if (description != null) {
/* 264 */       this.idToDescriptionMap.put(providerID, description);
/*     */     }
/*     */
/* 267 */     RegistrationListener listener = (RegistrationListener)this.keyListenerMap.get(keystr);
/* 268 */     if (listener != null) {
/* 269 */       listener.notify(layer, appContext);
/*     */     }
/* 271 */     return providerID;
/*     */   }
View Full Code Here


/* 280 */       throw new IllegalArgumentException("registrationID is null");
/*     */     }
/* 282 */     String key = (String)this.idKeyMap.get(registrationID);
/* 283 */     if (key != null)
/*     */     {
/* 285 */       RegistrationListener listener = (RegistrationListener)this.keyListenerMap.get(key);
/* 286 */       AuthConfigFactory.RegistrationContext rc = getRegistrationContext(registrationID);
/*     */
/* 288 */       this.keyProviderMap.remove(key);
/*     */
/* 290 */       if (listener != null)
/* 291 */         listener.notify(rc.getMessageLayer(), rc.getAppContext());
/* 292 */       return true;
/*     */     }
/* 294 */     return false;
/*     */   }
View Full Code Here

      String input = (layer + "_" + appContext).toUpperCase();
      String allLayer  = ("NULL" + "_" + appContext).toUpperCase();
      String allContext = (layer + "_" + "NULL").toUpperCase();
      String general = "NULL" + "_" + "NULL";
     
      RegistrationListener origListener = null;
      String key = null;
      for(int i = 0 ; i < 4 && origListener == null; i++)
      {
         if(i == 0) key = input;
         if(i == 1) key = allLayer;
View Full Code Here

      this.providerToIDListMap.put(provider,list);
      if(description != null)
         this.idToDescriptionMap.put(providerID, description);
     
      //Check if their is a pre-existing listener
      RegistrationListener listener = (RegistrationListener)keyListenerMap.get(keystr);
      if(listener != null)
         listener.notify(layer,appContext);
     
      return providerID; 
   }
View Full Code Here

         throw new IllegalArgumentException("registrationID is null");
     
      String key = (String)idKeyMap.get(registrationID);
      if(key != null)
      {
         RegistrationListener listener = (RegistrationListener)this.keyListenerMap.get(key);
         RegistrationContext rc = this.getRegistrationContext(registrationID);
        
         this.keyProviderMap.remove(key);
         //Notify the listener of the change
         if(listener != null)
            listener.notify(rc.getMessageLayer(),rc.getAppContext());
         return true;
      }
      return false;
   }
View Full Code Here

      String input = (layer + "_" + appContext).toUpperCase();
      String allLayer  = ("NULL" + "_" + appContext).toUpperCase();
      String allContext = (layer + "_" + "NULL").toUpperCase();
      String general = "NULL" + "_" + "NULL";
     
      RegistrationListener origListener = null;
      String key = null;
      for(int i = 0 ; i < 4 && origListener == null; i++)
      {
         if(i == 0) key = input;
         if(i == 1) key = allLayer;
View Full Code Here

      this.providerToIDListMap.put(provider,list);
      if(description != null)
         this.idToDescriptionMap.put(providerID, description);
     
      //Check if their is a pre-existing listener
      RegistrationListener listener = (RegistrationListener)keyListenerMap.get(keystr);
      if(listener != null)
         listener.notify(layer,appContext);
     
      return providerID; 
   }
View Full Code Here

         throw new IllegalArgumentException("registrationID is null");
     
      String key = (String)idKeyMap.get(registrationID);
      if(key != null)
      {
         RegistrationListener listener = (RegistrationListener)this.keyListenerMap.get(key);
         RegistrationContext rc = this.getRegistrationContext(registrationID);
        
         this.keyProviderMap.remove(key);
         //Notify the listener of the change
         if(listener != null)
            listener.notify(rc.getMessageLayer(),rc.getAppContext());
         return true;
      }
      return false;
   }
View Full Code Here

    public String[] detachListener(RegistrationListener listener,
            String layer, String appContext) {
        String regisID = getRegistrationID(layer, appContext);
        wLock.lock();
        try {  
            RegistrationListener ler = null;
            List<RegistrationListener> listeners =
                id2RegisListenersMap.get(regisID);
            if (listeners != null && listeners.remove(listener)) {
                   ler = listener;
            }
View Full Code Here

TOP

Related Classes of javax.security.auth.message.config.RegistrationListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.