Package org.jboss.soa.esb.services.security.auth

Examples of org.jboss.soa.esb.services.security.auth.AuthenticationRequest


    {
        // using a different certificate
        final Certificate callerCert = getCertificate(keyStorePath, "certtest2");

        // create the authentication request using the callers certificate as the credential
        final AuthenticationRequest authRequest = getAuthenticationRequest(callerCert);

        // create and setup the esb callback handler
        final CertCallbackHandler certCallbackHandler = new CertCallbackHandler();
        certCallbackHandler.setAuthenticationRequest(authRequest);
        certCallbackHandler.setSecurityConfig(getSecurityConfig(keyAlias));
View Full Code Here


        HashSet<Object> credentials = new HashSet<Object>();
        credentials.add(publicCred);
        credentials.add(privateCred);

        AuthenticationRequest authRequest = new AuthenticationRequestImpl.Builder(user, credentials).build();
        assertTrue(securityContext.compareTo(authRequest));

        credentials = new HashSet<Object>();
        credentials.add("public-modified-secret".getBytes());
        authRequest = new AuthenticationRequestImpl.Builder(user, credentials).build();
View Full Code Here

            {
                initialiseWSAProps(esbReq, soapIncomingProps) ;
            }
           
            // Extract security info from SOAPMessage.
            AuthenticationRequest authRequest = extractSecurityDetails(request, esbReq);
          ExtractorUtil.addAuthRequestToMessage(authRequest, esbReq);

            // We should be able to return null here but this causes JBossWS to NPE.
            final Message esbRes = deliverMessage(esbReq) ;
           
View Full Code Here

            System.out.println("Usage SendEsbMessage <category> <name> <text to send> <username> <password>");
        }
        Message esbMessage = MessageFactory.getInstance().getMessage();
       
    //  create an AuthenticationRequest
    AuthenticationRequest authRequest = new AuthenticationRequestImpl.Builder().username(args[3]).password(args[4].toCharArray()).build();
   
    //   set the authentication request on the message
    esbMessage.getContext().setContext(SecurityService.AUTH_REQUEST, PublicCryptoUtil.INSTANCE.encrypt((Serializable) authRequest));
   
        final String message = args[2];
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.services.security.auth.AuthenticationRequest

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.