Examples of RegistrationListener


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

      this.providerToIDListMap.put(acp,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.AuthConfigFactory.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

                       acp instanceof AllAppContextAuthConfigProvider);
   }
  
   public void testRegistrationListener() throws Exception
   {
      RegistrationListener rl = new RegistrationListener()
      {
         public void notify(String layer, String appContext)
         {
         }
      };
View Full Code Here

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

        IdentityService identityService = new GeronimoIdentityService(defaultSubject);
        UserIdentity unauthenticatedIdentity = identityService.newUserIdentity(defaultSubject, null, null);
        LoginService loginService = new GeronimoLoginService(configurationFactory, identityService);
        Authenticator authenticator;
        AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
        RegistrationListener listener = new RegistrationListener() {

            public void notify(String layer, String appContext) {
            }
        };
        //?? TODO is context.getPath() the context root?
View Full Code Here

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

                                            @ParamReference(name = "ConfigurationFactory") ConfigurationFactory configurationFactory
    ) throws AuthException {
        String appContext1 = 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

        IdentityService identityService = new GeronimoIdentityService(defaultSubject);
        UserIdentity unauthenticatedIdentity = identityService.newUserIdentity(defaultSubject, null, null);
        LoginService loginService = new GeronimoLoginService(configurationFactory, identityService);
        Authenticator authenticator;
        AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
        RegistrationListener listener = new RegistrationListener() {

            public void notify(String layer, String appContext) {
            }
        };
        //?? TODO is context.getPath() the context root?
View Full Code Here

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

        IdentityService identityService = new GeronimoIdentityService(defaultSubject);
        UserIdentity unauthenticatedIdentity = identityService.newUserIdentity(defaultSubject);
        LoginService loginService = new GeronimoLoginService(configurationFactory, identityService);
        Authenticator authenticator;
        AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
        RegistrationListener listener = new RegistrationListener() {

            public void notify(String layer, String appContext) {
            }
        };
        //?? TODO is context.getPath() the context root?
View Full Code Here

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

        AccessControlContext defaultAcc = ContextManager.registerSubjectShort(defaultSubject, null);
        JettyIdentityService identityService = new JettyIdentityService(defaultAcc, defaultSubject, runAsSource);
        GeronimoLoginService loginService = new GeronimoLoginService(configurationFactory, identityService);
        authConfigProperties.put(POLICY_CONTEXT_ID_KEY, policyContextID);
        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

                       acp instanceof AllAppContextAuthConfigProvider);
   }
  
   public void testRegistrationListener() throws Exception
   {
      RegistrationListener rl = new RegistrationListener()
      {
         public void notify(String layer, String appContext)
         {
         }
      };
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.