Examples of AuthInfo


Examples of org.apache.jackrabbit.oak.api.AuthInfo

        try {
            SimpleCredentials sc = new SimpleCredentials(USER_ID, USER_PWD.toCharArray());
            sc.setAttribute("attr", "val");

            cs = login(sc);
            AuthInfo ai = cs.getAuthInfo();

            root.refresh();
            PrincipalProvider pp = getSecurityProvider().getConfiguration(PrincipalConfiguration.class).getPrincipalProvider(root, NamePathMapper.DEFAULT);
            Set<? extends Principal> expected = pp.getPrincipals(USER_ID);
            assertEquals(2, expected.size());
            assertEquals(expected, ai.getPrincipals());

        } finally {
            if (cs != null) {
                cs.close();
            }
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    Element element = parent.getOwnerDocument().createElementNS(nameSpace,TAG_NAME);

    if (generic != null)
      element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      AbstractHandler handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    AbstractHandler handler = maker.lookup(AddPublisherAssertionsHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    PublisherAssertion assertion = new PublisherAssertion();
    assertion.setFromKey("3379ec11-a509-4668-9fee-19b134d0d09b");
    assertion.setToKey("3379ec11-a509-4668-9fee-19b134d0d09b");
    assertion.setKeyName("paKeyName");
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

  {
  }

  public RegistryObject unmarshal(Element element)
  {
    AuthInfo obj = new AuthInfo();

    // Attributes
    // {none}

    // Text Node Value
    obj.setValue(XMLUtils.getText(element));

    // Child Elements
    // {none}

    return obj;
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    AuthInfo info = (AuthInfo)object;
    String generic = getGeneric(null);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);

    String infoValue = info.getValue();
    if (infoValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(infoValue));

    parent.appendChild(element);
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    HandlerMaker maker = HandlerMaker.getInstance();
    AbstractHandler handler = maker.lookup(AuthInfoHandler.TAG_NAME);
    Element parent = XMLUtils.newRootElement();
    Element child = null;
   
    AuthInfo object = new AuthInfo();
    object.setValue("authToken:c9613c3c-fe55-4f34-a3da-b3167afbca4a");
   
    System.out.println();
   
    RegistryObject regObject = object;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

  AbstractHandler handler = maker.lookup(GetPublisherAssertionsHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    GetPublisherAssertions service = new GetPublisherAssertions();
    service.setAuthInfo(authInfo);

    System.out.println();
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }
View Full Code Here

Examples of org.apache.juddi.datatype.request.AuthInfo

    AbstractHandler handler = maker.lookup(DeleteBusinessHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeleteBusiness service = new DeleteBusiness();
    service.setAuthInfo(authInfo);
    service.addBusinessKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    service.addBusinessKey(new BusinessKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));
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.