Examples of callBackhandler()


Examples of org.jboss.soa.esb.services.security.SecurityConfig.Builder.callBackhandler()

  public void authenticateUserpassword() throws ConfigurationException, SecurityServiceException
  {
    final String userName = "testUser";
    final String password = "testPassword";
    Builder builder = new SecurityConfig.Builder("UserPassLogin");
    builder.callBackhandler("org.jboss.internal.soa.esb.services.security.UserPassCallbackHandler");
    SecurityConfig configInfo = builder.build();
    TestPrincipal principal = new TestPrincipal(userName);
    Set<Object> credentials = new HashSet<Object>();
    credentials.add(password);
View Full Code Here

Examples of org.jboss.soa.esb.services.security.SecurityConfig.Builder.callBackhandler()

    Builder builder = new SecurityConfig.Builder(moduleName);
    builder.runAs(securityFragment.getAttribute(ListenerTagNames.RUN_AS_TAG));
    builder.useCallerIdentity(securityFragment.getAttribute(ListenerTagNames.USE_CALLERS_IDENTIDY_TAG));
    builder.rolesAllowed(securityFragment.getAttribute(ListenerTagNames.ROLES_ALLOWED));
    builder.callBackhandler(securityFragment.getAttribute(ListenerTagNames.CALLBACK_HANDLER_TAG));

    ConfigTree[] children = securityFragment.getChildren("property");
    for (ConfigTree configTree : children)
    {
      String propertyName = configTree.getAttribute("name");
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.