Package com.sonatype.security.ldap.api.dto

Examples of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO


      throws Exception
  {
    PlexusResource pr = this.lookup(PlexusResource.class, "LdapUserAndGroupConfigTestPlexusResource");

    LdapServerRequest ldapServerRequest = new LdapServerRequest();
    ldapServerRequest.setData(new LdapServerConfigurationDTO());

    ldapServerRequest.getData().setName("testSuccess");

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerRequest.getData().setConnectionInfo(connDto);
View Full Code Here


  {

    PlexusResource pr = this.lookup(PlexusResource.class, "LdapUserAndGroupConfigTestPlexusResource");

    LdapServerRequest ldapServerRequest = new LdapServerRequest();
    ldapServerRequest.setData(new LdapServerConfigurationDTO());

    ldapServerRequest.getData().setName("testFailure");

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerRequest.getData().setConnectionInfo(connDto);
View Full Code Here

  public void testInvalidLogin()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("simple");
    connDto.setHost("localhost");
View Full Code Here

      throws Exception
  {

    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    LdapConnectionInfoDTO connDto = new LdapConnectionInfoDTO();
    ldapServerLoginTestRequest.getData().getConfiguration().setConnectionInfo(connDto);
    connDto.setAuthScheme("none");
    connDto.setHost("localhost");
View Full Code Here

  public void testPutInvalidPass()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

  protected LdapServerConfigurationDTO getDefaultServerConfiguration() {
    LdapConnectionInfoDTO connInfo = getDefaultConnectionInfo();
    LdapUserAndGroupAuthConfigurationDTO userGroupConf = getDefaultUserAndGroupConfiguration();

    LdapServerConfigurationDTO dto = new LdapServerConfigurationDTO();
    dto.setId(null); // not set
    dto.setName("default");
    dto.setUrl(null); // set on the return, not the request
    dto.setConnectionInfo(connInfo);
    dto.setUserAndGroupConfig(userGroupConf);
    return dto;
  }
View Full Code Here

  public void testPut()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

  public void testPutInvalidServerConfig()
      throws Exception
  {
    LdapServerLoginTestRequest ldapServerLoginTestRequest = new LdapServerLoginTestRequest();
    ldapServerLoginTestRequest.setData(new LdapServerLoginTestDTO());
    ldapServerLoginTestRequest.getData().setConfiguration(new LdapServerConfigurationDTO());

    ldapServerLoginTestRequest.getData().getConfiguration().setId(null); // not set
    ldapServerLoginTestRequest.getData().getConfiguration().setName("testPost");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

TOP

Related Classes of com.sonatype.security.ldap.api.dto.LdapServerConfigurationDTO

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.