예제 #1
0
      static boolean isEnabled(String cipherSuite, String protocol) {
        int versionNumber = toVersionNumber(protocol);

        if (versionNumber < 0) {
          return true; // unlikely to happen
        }

        for (TLSCipherStatus status : TLSCipherStatus.values()) {
          if (cipherSuite.equals(status.cipherSuite)) {
            if ((versionNumber < status.supportedSince)
                || (versionNumber >= status.obsoletedSince)) {
              return false;
            }

            return true;
          }
        }

        return true;
      }
예제 #2
0
 boolean isEnabled() {
   return TLSCipherStatus.isEnabled(cipherSuite, protocol);
 }