public static CdcSession createCdcSessionViaDomainAuth(String serverName,String userName,String userPassword){
  if (serverName == null || serverName.length() == 0) {
    throw new IllegalArgumentException("Server name is not specified");
  }
  if (userName == null || userName.length() == 0) {
    throw new IllegalArgumentException("User name is not specified");
  }
  return new CdcSession(serverName,userName,userPassword);
}

public static CdcSession createCdcSessionViaDomainAuth ( String serverName , String userName , String userPassword ) { if ( serverName == null || serverName . length ( ) == 0 ) { throw new IllegalArgumentException ( "Server name is not specified" ) ; } if ( userName == null || userName . length ( ) == 0 ) { throw new IllegalArgumentException ( "User name is not specified" ) ; } return new CdcSession ( serverName , userName , userPassword ) ; }
instantiates a cdcsession for a specified domain user for a specified server .
