protected static List<AlternativeOCSP> retrieveAlternativeOCSPsForSite(ILdapConnectionEx connection,String altOcspListDn){
  Collection<TenantAlternativeOCSP> tOcspCollection=retrieveObjectsCollection(connection,altOcspListDn,ContainerLdapObject.CONTAINER_OCSPs,TenantAlternativeOCSPLdapObject.getInstance(),null);
  ArrayList<AlternativeOCSP> ocspArray=new ArrayList<AlternativeOCSP>(tOcspCollection.size());
  for (  TenantAlternativeOCSP tAlternativeOCSP : tOcspCollection) {
    ocspArray.add(tAlternativeOCSP.getAlternativeOCSP());
  }
  int index=0;
  for (  TenantAlternativeOCSP tAlternativeOCSP : tOcspCollection) {
    int cn=Integer.parseInt(tAlternativeOCSP.getCn());
    if (cn < tOcspCollection.size()) {
      if (cn != index) {
        ocspArray.set(cn,tAlternativeOCSP.getAlternativeOCSP());
      }
    }
 else {
      throw new IllegalArgumentException("Unexpected TenantAlternativeOCSP object has cn value out of index range of the collection.");
    }
    index++;
  }
  return ocspArray;
}

protected static List < AlternativeOCSP > retrieveAlternativeOCSPsForSite ( ILdapConnectionEx connection , String altOcspListDn ) { Collection < TenantAlternativeOCSP > tOcspCollection = retrieveObjectsCollection ( connection , altOcspListDn , ContainerLdapObject . CONTAINER_OCSPs , TenantAlternativeOCSPLdapObject . getInstance ( ) , null ) ; ArrayList < AlternativeOCSP > ocspArray = new ArrayList < AlternativeOCSP > ( tOcspCollection . size ( ) ) ; for ( TenantAlternativeOCSP tAlternativeOCSP : tOcspCollection ) { ocspArray . add ( tAlternativeOCSP . getAlternativeOCSP ( ) ) ; } int index = 0 ; for ( TenantAlternativeOCSP tAlternativeOCSP : tOcspCollection ) { int cn = Integer . parseInt ( tAlternativeOCSP . getCn ( ) ) ; if ( cn < tOcspCollection . size ( ) ) { if ( cn != index ) { ocspArray . set ( cn , tAlternativeOCSP . getAlternativeOCSP ( ) ) ; } } else { throw new IllegalArgumentException ( "Unexpected TenantAlternativeOCSP object has cn value out of index range of the collection." ) ; } index ++ ; } return ocspArray ; }
retrieve ordered alternativeocsp list
