code: public static boolean isParityAdjusted(byte[] key, int offset)
          throws InvalidKeyException {
              if (key.length - offset < 24) {
                  throw new InvalidKeyException("Wrong key size");
              }
              if (DESKeySpec.isParityAdjusted(key, offset) == false
                  || DESKeySpec.isParityAdjusted(key, offset + 8) == false
                  || DESKeySpec.isParityAdjusted(key, offset + 16) == false) {
                  return false;
              }
              return true;
      }
docs: Checks if the given DES-EDE key, starting at <code>offset</code>
  inclusive, is parity-adjusted.
  
  @param key    a byte array which holds the key value
  @param offset the offset into the byte array
  @return true if the given DES-EDE key is parity-adjusted, false
  otherwise
  
  @exception NullPointerException if <code>key</code> is null.
  @exception InvalidKeyException if the given key material, starting at
  <code>offset</code> inclusive, is shorter than 24 bytes