org.mule.tools.cxf.utils.security
Class HttpBasicAuthenticator

java.lang.Object
  extended by org.mule.tools.cxf.utils.security.HttpBasicAuthenticator
All Implemented Interfaces:
Authenticator

public class HttpBasicAuthenticator
extends Object
implements Authenticator

It provides the security credentials set up for a CXF client. It knows how to set up the HTTP Basic Authentication policy.

Author:
damiansima

Constructor Summary
HttpBasicAuthenticator()
           
 
Method Summary
 org.apache.cxf.endpoint.Client setCredentials(org.apache.cxf.endpoint.Client client, String user, String password)
          Set up authentication policy for a CXF client with the user and password provided.
 org.apache.cxf.endpoint.Client setCredentials(Object servicePort, String user, String password)
          Set up authentication policy for a CXF service port with the user and password provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBasicAuthenticator

public HttpBasicAuthenticator()
Method Detail

setCredentials

public org.apache.cxf.endpoint.Client setCredentials(Object servicePort,
                                                     String user,
                                                     String password)
Description copied from interface: Authenticator
Set up authentication policy for a CXF service port with the user and password provided.

Specified by:
setCredentials in interface Authenticator

setCredentials

public org.apache.cxf.endpoint.Client setCredentials(org.apache.cxf.endpoint.Client client,
                                                     String user,
                                                     String password)
Description copied from interface: Authenticator
Set up authentication policy for a CXF client with the user and password provided.

Specified by:
setCredentials in interface Authenticator


Copyright © 2013. All Rights Reserved.