Examples of AuthenticationHandler


Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

    private Object getInstance(XmlRpcRequest pRequest) throws XmlRpcException {
        return requestProcessorFactory.getRequestProcessor(pRequest);
    }

  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
      AuthenticationHandler authHandler = mapping.getAuthenticationHandler();
      if (authHandler != null  &&  !authHandler.isAuthorized(pRequest)) {
          throw new XmlRpcNotAuthorizedException("Not authorized");
      }
      Object[] args = new Object[pRequest.getParameterCount()];
      for (int j = 0;  j < args.length;  j++) {
          args[j] = pRequest.getParameter(j);
View Full Code Here

Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

        }
    }

    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
        XmlRpcHandlerMapping mapping = getHandlerMapping("AuthenticationTest.properties");
        ((AbstractReflectiveHandlerMapping) mapping).setAuthenticationHandler(new AuthenticationHandler(){
            public boolean isAuthorized(XmlRpcRequest pRequest)
                    throws XmlRpcException {
                XmlRpcRequestConfig config = pRequest.getConfig();
                if (config instanceof XmlRpcHttpRequestConfig) {
                    XmlRpcHttpRequestConfig httpRequestConfig = (XmlRpcHttpRequestConfig) config;
View Full Code Here

Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

    private Object getInstance(XmlRpcRequest pRequest) throws XmlRpcException {
        return requestProcessorFactory.getRequestProcessor(pRequest);
    }

  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
      AuthenticationHandler authHandler = mapping.getAuthenticationHandler();
      if (authHandler != null  &&  !authHandler.isAuthorized(pRequest)) {
          throw new XmlRpcNotAuthorizedException("Not authorized");
      }
      Object[] args = new Object[pRequest.getParameterCount()];
      for (int j = 0;  j < args.length;  j++) {
          args[j] = pRequest.getParameter(j);
View Full Code Here

Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

        }
    }

    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
        XmlRpcHandlerMapping mapping = getHandlerMapping("AuthenticationTest.properties");
        ((AbstractReflectiveHandlerMapping) mapping).setAuthenticationHandler(new AuthenticationHandler(){
            public boolean isAuthorized(XmlRpcRequest pRequest)
                    throws XmlRpcException {
                XmlRpcRequestConfig config = pRequest.getConfig();
                if (config instanceof XmlRpcHttpRequestConfig) {
                    XmlRpcHttpRequestConfig httpRequestConfig = (XmlRpcHttpRequestConfig) config;
View Full Code Here

Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

    private Object getInstance(XmlRpcRequest pRequest) throws XmlRpcException {
        return requestProcessorFactory.getRequestProcessor(pRequest);
    }

  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
      AuthenticationHandler authHandler = mapping.getAuthenticationHandler();
      if (authHandler != null  &&  !authHandler.isAuthorized(pRequest)) {
          throw new XmlRpcNotAuthorizedException("Not authorized");
      }
      Object[] args = new Object[pRequest.getParameterCount()];
      for (int j = 0;  j < args.length;  j++) {
          args[j] = pRequest.getParameter(j);
View Full Code Here

Examples of org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler

            return instance;
        }
    }

  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
      AuthenticationHandler authHandler = mapping.getAuthenticationHandler();
      if (authHandler != null  &&  !authHandler.isAuthorized(pRequest)) {
          throw new XmlRpcNotAuthorizedException("Not authorized");
      }
      Object[] args = new Object[pRequest.getParameterCount()];
      for (int j = 0;  j < args.length;  j++) {
          args[j] = pRequest.getParameter(j);
View Full Code Here

Examples of org.jasig.cas.authentication.handler.AuthenticationHandler

    @Override
    protected Pair<AuthenticationHandler, Principal> authenticateAndObtainPrincipal(final Credentials credentials) throws AuthenticationException {
        boolean foundSupported = false;
        boolean authenticated = false;
        AuthenticationHandler authenticatedClass = null;
       
        for (final AuthenticationHandler authenticationHandler : this.authenticationHandlers) {
            if (authenticationHandler.supports(credentials)) {
                foundSupported = true;
                if (!authenticationHandler.authenticate(credentials)) {
View Full Code Here

Examples of org.jboss.errai.bus.client.security.AuthenticationHandler

          public void onClick(ClickEvent event) {

            DeferredCommand.addCommand(new Command() {
              public void execute() {
                Registry.get(SecurityService.class).doAuthentication(
                    new AuthenticationHandler() {
                      public void doLogin(Credential[] credentials) {
                        for (Credential c : credentials) {
                          if (c instanceof NameCredential) {
                            ((NameCredential) c).setName(display.getUsernameInput().getText());
                          } else if (c instanceof PasswordCredential) {
View Full Code Here

Examples of org.jboss.errai.bus.client.security.AuthenticationHandler

          public void onClick(ClickEvent event) {

            DeferredCommand.addCommand(new Command() {
              public void execute() {
                Registry.get(SecurityService.class).doAuthentication(
                    new AuthenticationHandler() {
                      public void doLogin(Credential[] credentials) {
                        for (Credential c : credentials) {
                          if (c instanceof NameCredential) {
                            ((NameCredential) c).setName(display.getUsernameInput().getText());
                          } else if (c instanceof PasswordCredential) {
View Full Code Here

Examples of org.jitterbit.integration.server.authentication.AuthenticationHandler

        commandListenerPort = ServerConfig.getOption(JMS_ENGINE_COMPONENT_NAME, "CommandPort",
                        DEFAULT_COMMAND_LISTENER_PORT);

        commandListener = new KongaCommandSocketListener(commandListenerPort, JMS_ENGINE_COMPONENT_NAME);

        commandListener.registerCommandAuthenticator(new AuthenticationHandler());
        commandListener.registerCommandHandler("GetStatus", new GetStatusHandler());
        commandListener.registerCommandHandler("Start", new StartHandler());
        commandListener.registerCommandHandler("Stop", new StopHandler());
        commandListener.registerCommandHandler("Shutdown", new ShutdownHandler());
        commandListener.registerCommandHandler("Update", new UpdateHandler());
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.