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

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


  @Test
  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");
View Full Code Here


  public void testInvalidLoginWithBind()
      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");
View Full Code Here

  public void testLogin()
      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");
View Full Code Here

  public void testLoginWithBind()
      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");
View Full Code Here

  @Test
  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

  @Test
  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

  @Test
  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

  @Test
  public void testLdapLoginTest()
      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("test");
    ldapServerLoginTestRequest.getData().getConfiguration().setUrl(null); // set on the return, not the request
View Full Code Here

  }

  private void testLogin(final LdapServerConfigurationDTO ldapServer, final boolean sendServerId)
      throws Exception
  {
    final LdapServerLoginTestDTO loginDTO = new LdapServerLoginTestDTO();
    loginDTO.setUsername(encodeBase64("brianf"));
    loginDTO.setPassword(encodeBase64("brianf123"));
    loginDTO.setConfiguration(ldapServer);

    ldapServer.setUrl(null);

    final LdapServerLoginTestRequest resourceRequest = new LdapServerLoginTestRequest();
    resourceRequest.setData(loginDTO);
View Full Code Here

TOP

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

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.