StringTokenizer tokens = new StringTokenizer(cipherSuiteStr, ",");
while (tokens.hasMoreTokens()) {
String cipherAction = tokens.nextToken();
if (cipherAction.startsWith("+")) {
String cipher = cipherAction.substring(1);
CipherInfo cipherInfo = CipherInfo.getCipherInfo(cipher);
if (cipherInfo != null &&
isValidProtocolCipher(cipherInfo, ssl2Enabled,
ssl3Enabled, tlsEnabled)) {
cipherList.add(cipherInfo.getCipherName());
} else {
throw new IllegalStateException(getFormatMessage(
"iiop.unknown_cipher",
new Object[] { cipher }));
}
} else if (cipherAction.startsWith("-")) {
String cipher = cipherAction.substring(1);
CipherInfo cipherInfo = CipherInfo.getCipherInfo(cipher);
if (cipherInfo == null ||
!isValidProtocolCipher(cipherInfo, ssl2Enabled,
ssl3Enabled, tlsEnabled)) {
throw new IllegalStateException(getFormatMessage(
"iiop.unknown_cipher",