DirectoryString ::= CHOICE { teletexString TeletexString (SIZE (1..MAX)), printableString PrintableString (SIZE (1..MAX)), universalString UniversalString (SIZE (1..MAX)), utf8String UTF8String (SIZE (1..MAX)), bmpString BMPString (SIZE (1..MAX)) }
179180181182183184185186187188
if (iss_name == null) { iss_name = ""; //$NON-NLS-1$ } String name = new Name(iss_name).getName(X500Principal.CANONICAL); if (!issuerNames.contains(name)) { issuerNames.add(name); } }
203204205206207208209210211212
throw new NullPointerException(Messages.getString("security.63")); //$NON-NLS-1$ } if (issuerNames == null) { issuerNames = new ArrayList<String>(); } String name = new Name(iss_name).getName(X500Principal.CANONICAL); if (!issuerNames.contains(name)) { issuerNames.add(name); } }
173174175176177178179180181182183
break; case REG_ID: this.name = oidStrToInts(name); break; case DIR_NAME : this.name = new Name(name); break; case IP_ADDR : this.name = ipStrToBytes(name); break; default:
90919293949596979899100101102103104
} issuerNames = new ArrayList<String>(names.size()); for (Object name: names) { if (name instanceof String) { issuerNames.add( new Name((String) name).getName( X500Principal.CANONICAL)); } else if (name instanceof byte[]) { issuerNames.add( new Name((byte[]) name).getName( X500Principal.CANONICAL)); } else { throw new IOException( Messages.getString("security.62")); //$NON-NLS-1$ }
140141142143144145146147148149
156157158159160161162163164165
404405406407408409410411412413414415416417418419420421422
String sigAlgOID = sigAlgNameAndOID[1]; AlgorithmIdentifier algId = new AlgorithmIdentifier(sigAlgOID); // generate a distinguished name using the string Name subjectDName = null; Name issuerDName = null; try { subjectDName = new Name(strSubjectDN); if (strSubjectDN.equals(strIssuerDN)) { issuerDName = subjectDName; } else { issuerDName = new Name(strIssuerDN); } } catch (IOException e) { throw (IOException) new IOException( "Failed to generate a distinguished name. ").initCause(e); }