Examples of AuthenticationListener


Examples of com.sun.enterprise.webservice.monitoring.AuthenticationListener

    public void register() {
        WebServiceEngine wsEng =
        WebServiceEngineFactory.getInstance().getEngine();

        GlobalMessageListener gml = new GlobalMessageListenerImpl();
        AuthenticationListener al = new AuthenticationListenerImpl();
        wsEng.setGlobalMessageListener(gml);
        wsEng.addAuthListener(al);

        if (wsEng.getGlobalMessageListener() == null) {
            throw new RuntimeException("Message Listener could not be set");
View Full Code Here

Examples of org.apache.shiro.authc.AuthenticationListener

        }
        return super.doAuthenticate(authenticationToken);
    }

    private void configureListeners() {
        AuthenticationListener listener = CodiUtils.getContextualReferenceByClass(OctopusAuthenticationListener.class);
        getAuthenticationListeners().add(listener);

        getAuthenticationListeners().add(new AuthenticationExceptionListener());
        listenerConfigured = true;
    }
View Full Code Here

Examples of org.eclipse.swt.browser.AuthenticationListener

    @Override
    public Object run(Object[] args) {
      final Browser browser = (Browser)getControl();
      boolean isActive = (Boolean)args[0];
      if(isActive) {
        AuthenticationListener authenticationListener = new AuthenticationListener() {
          public void authenticate(AuthenticationEvent e) {
            Object[] result = (Object[])new CMJ_getCredentials().syncExec(browser, e.location);
            boolean doIt = (Boolean)result[0];
            if(doIt) {
              e.user = (String)result[1];
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

     * @param config
     * @throws ServletException
     */
    @Override
    protected void afterInit(ServletConfig config) throws ServletException {
        ServletContainerFactory.getServletContainer().addAuthenticationListener(new AuthenticationListener() {
            @Override
            public void onEvent(AuthenticationEvent event) {
                if (event.getType() == AuthenticationEventType.LOGIN) {
                    bindCredentialsToAuthenticationRegistry(getContainer(), event.getRequest(), event.getCredentials());
                }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

     * @param config
     * @throws ServletException
     */
    @Override
    protected void afterInit(ServletConfig config) throws ServletException {
        ServletContainerFactory.getServletContainer().addAuthenticationListener(new AuthenticationListener() {
            @Override
            public void onEvent(AuthenticationEvent event) {
                if (event.getType() == AuthenticationEventType.LOGIN) {
                    bindCredentialsToAuthenticationRegistry(getContainer(), event.getRequest(), event.getCredentials());
                }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

     * @param config
     * @throws ServletException
     */
    @Override
    protected void afterInit(ServletConfig config) throws ServletException {
        ServletContainerFactory.getServletContainer().addAuthenticationListener(new AuthenticationListener() {
            @Override
            public void onEvent(AuthenticationEvent event) {
                if (event.getType() == AuthenticationEventType.LOGIN) {
                    bindCredentialsToAuthenticationRegistry(getContainer(), event.getRequest(), event.getCredentials());
                }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

     * @param config
     * @throws ServletException
     */
    @Override
    protected void afterInit(ServletConfig config) throws ServletException {
        ServletContainerFactory.getServletContainer().addAuthenticationListener(new AuthenticationListener() {
            @Override
            public void onEvent(AuthenticationEvent event) {
                if (event.getType() == AuthenticationEventType.LOGIN) {
                    bindCredentialsToAuthenticationRegistry(getContainer(), event.getRequest(), event.getCredentials());
                }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

     * @param config
     * @throws ServletException
     */
    @Override
    protected void afterInit(ServletConfig config) throws ServletException {
        ServletContainerFactory.getServletContainer().addAuthenticationListener(new AuthenticationListener() {
            @Override
            public void onEvent(AuthenticationEvent event) {
                if (event.getType() == AuthenticationEventType.LOGIN) {
                    bindCredentialsToAuthenticationRegistry(getContainer(), event.getRequest(), event.getCredentials());
                }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationListener

   @Override
   public void init() throws ServletException
   {
      sc = ServletContainerFactory.getServletContainer();
      sc.addAuthenticationListener(new AuthenticationListener()
      {
         @Override
         public void onEvent(AuthenticationEvent event)
         {
            authEvents.addLast(event);
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.