Examples of RegistrationListener


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

                                            @ParamReference(name = "ConfigurationFactory") ConfigurationFactory configurationFactory
    ) throws AuthException {
        this.appContext = appContext;
        this.allowLazyAuthentication = allowLazyAuthentication;
        AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
        RegistrationListener listener = new RegistrationListener() {

            public void notify(String layer, String appContext) {
            }
        };
        AuthConfigProvider authConfigProvider = authConfigFactory.getConfigProvider(messageLayer, appContext, listener);
View Full Code Here

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

/*  93 */     String input = (layer + "_" + appContext).toUpperCase();
/*  94 */     String allLayer = ("NULL_" + appContext).toUpperCase();
/*  95 */     String allContext = (layer + "_" + "NULL").toUpperCase();
/*  96 */     String general = "NULL_NULL";
/*     */
/*  98 */     RegistrationListener origListener = null;
/*  99 */     String key = null;
/* 100 */     for (int i = 0; (i < 4) && (origListener == null); i++)
/*     */     {
/* 102 */       if (i == 0) key = input;
/* 103 */       if (i == 1) key = allLayer;
View Full Code Here

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

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

/* 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

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

      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

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

      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

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

         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

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

      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

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

      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

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

         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
TOP
Copyright © 2018 www.massapi.com. 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.