KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > core > SSLCipherSuiteValidator


1 package com.sslexplorer.core;
2
3 import java.util.Properties JavaDoc;
4
5 import com.sslexplorer.boot.CodedException;
6 import com.sslexplorer.boot.PropertyDefinition;
7 import com.sslexplorer.boot.PropertyValidator;
8
9 public class SSLCipherSuiteValidator implements PropertyValidator {
10
11     public void validate(PropertyDefinition definition, String JavaDoc value,
12             Properties JavaDoc properties) throws CodedException {
13         if(!value.equals("") && value.indexOf("SSL_RSA_WITH_RC4_128_MD5")==-1)
14             throw new CoreException(1,"ssl","errors");
15     }
16
17 }
18
Popular Tags