public void addIssuer(X500Principal issuer){
  if (issuer == null) {
    throw new NullPointerException("issuer == null");
  }
  if (issuerNames == null) {
    issuerNames=new ArrayList<String>();
  }
  String name=issuer.getName(X500Principal.CANONICAL);
  if (!issuerNames.contains(name)) {
    issuerNames.add(name);
  }
  if (issuerPrincipals == null) {
    issuerPrincipals=new ArrayList<X500Principal>(issuerNames.size());
  }
  int size=issuerNames.size() - 1;
  for (int i=issuerPrincipals.size(); i < size; i++) {
    issuerPrincipals.add(new X500Principal(issuerNames.get(i)));
  }
  issuerPrincipals.add(issuer);
}

public void addIssuer ( X500Principal issuer ) { if ( issuer == null ) { throw new NullPointerException ( "issuer == null" ) ; } if ( issuerNames == null ) { issuerNames = new ArrayList < String > ( ) ; } String name = issuer . getName ( X500Principal . CANONICAL ) ; if ( ! issuerNames . contains ( name ) ) { issuerNames . add ( name ) ; } if ( issuerPrincipals == null ) { issuerPrincipals = new ArrayList < X500Principal > ( issuerNames . size ( ) ) ; } int size = issuerNames . size ( ) - 1 ; for ( int i = issuerPrincipals . size ( ) ; i < size ; i ++ ) { issuerPrincipals . add ( new X500Principal ( issuerNames . get ( i ) ) ) ; } issuerPrincipals . add ( issuer ) ; }
adds an issuer to the criterion for the issuer distinguished names . < p > the crl issuer must match at least one of the specified distinguished names .
