public static boolean isSupportedOnJVM() throws LinkageError, ExceptionInInitializerError {
  String requiredClassname="javax.net.ssl.SSLServerSocketFactory";
  try {
    Class.forName(requiredClassname);
  }
 catch (  ClassNotFoundException e) {
    return false;
  }
  return true;
}

public static boolean isSupportedOnJVM ( ) throws LinkageError , ExceptionInInitializerError { String requiredClassname = "javax.net.ssl.SSLServerSocketFactory" ; try { Class . forName ( requiredClassname ) ; } catch ( ClassNotFoundException e ) { return false ; } return true ; }
not all of the jvm / platforms support all of its security features . this method determines if is supported .
