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)) }
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:
172173174175176177178179180181182
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); }
128129130131132133134135136137138
super(); if (name == null) { throw new NullPointerException(Messages.getString("auth.00")); //$NON-NLS-1$ } try { dn = new Name(name); } catch (IOException e) { IllegalArgumentException iae = new IllegalArgumentException(Messages .getString("auth.2D")); //$NON-NLS-1$ iae.initCause(e); throw iae;
129130131132133134135136137138139
145146147148149150151152153154155
if (name == null) { throw new NullPointerException(Messages.getString("auth.00")); //$NON-NLS-1$ } try { dn = new Name(substituteNameFromMap(name,keywordMap)); } catch (IOException e) { IllegalArgumentException iae = new IllegalArgumentException(Messages .getString("auth.2D")); //$NON-NLS-1$ iae.initCause(e); throw iae;
113114115116117118119120121122123124125126127
} 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$ }
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); } }
7677787980818283848586